Display Non-zero values of keyfigures based on a particular value of a char

Hi Gurus,
I would like to display only Non-zero values for keyfigures but only for a particular value of a characteristic. For Ex: We have material Group. For a particular value of material group, i do not want to display the zero stock. But for other material groups it should display zero stock.
I tried to use conditions, but the problem is it suppresses all the zero values for the keyfigure for material group in general and not for a particular value of the material group.
Is there is any way that i can go about for this scenario. Pls help.
thanks & regards,
PS

Hi
Create a structure in the rows based on selections on material group. Eg.
Structure
   Mat grp 1 (restricted to material during selection)
   Mat grp 2
then add a formula in columns using boolean argument
e.g (exisisting KF >= 1)*1+0
Then you can use conditions to elimanate zeros on the new KF.
Hope it helps
Edited by: Karin van der Merwe on Feb 29, 2008 8:52 AM

Similar Messages

  • Display Non-zero values of keyfigures based on a particular value of a cha

    Hi Gurus,
    I would like to display only Non-zero values for keyfigures but only for a particular value of a characteristic. For Ex: We have material Group. For a particular value of material group, i do not want to display the zero stock. But for other material groups it should display zero stock.
    I tried to use conditions, but the problem is it suppresses all the zero values for the keyfigure for material group in general and not for a particular value of the material group.
    Is there is any way that i can go about for this scenario. Pls help.
    thanks & regards,
    PS

    Hi,
    You can very much restrict your KF on particular values of said material group. For example you material group contains the values like "Blades", "Personal Cares", "Disposables" etc... and you want to restrict your KF on "Blades" only, you can do that.
    Just restrict your KF on Material Group and include the values which you want for restrictions. You can also exclude values from restrictions.
    Hope it help you.
    Yogesh.

  • Display an exception on one keyfigure based on the value of another key fig

    Hello all,
    How to run a exception based on some condition i.e
    i want to highlight the sales(key figure) which r less than the  average sales..
    where sales and average sales r keyfigures...
    i also created a cal key fig which has has value 1 if sale > avg sale...
    i.e How do i display an exception on one keyfigure depending on the value of another keyfigure??
    plz reply its urgent...
    thnx in advance...

    Hello Ajay, did you got an answer for your problem? I'm interested...
    Thx Masen
    Edited by: Masen-Fuad Marei on Nov 25, 2009 6:26 PM

  • ABAP Query - How to display non-zero entries

    Hi All,
    I have created a simple query having the join of 4 tables.
    Now I need to display the output for only non-zero entries of a particular field.
    How this can be achieved ?
    Please let me know-
    1) Either , there are ways to restrict the entries during selection itself(I do not want to give this field in selection screen)
    2) Or , Delete the entries having zero value before display.
    I debugged the standard report for query and found out the internal table where the
    result is stored, but it is not allowing to be used in the coding sections of infoset.
    Thanks ,
    Neethu

    In select add condition field1 NE 0 or SPACE.
    Edited by: Shaik Hussain on Nov 30, 2010 1:46 PM

  • Displaying item value on basis of pop up lov value

    Hi ,
    I have created a form on which i have a pop up lov item whose values are getting displayed on basis of a table column.Now my requirement is that when a user select a value(for ex: say an code i.e 123) from pop up lov then on basis of this value an another value pops up which shows the description related to this code.I have this description in another column of same table from which i have displayed pop up lov values.
    I tried to implement this by creating a display only item on form and taking source value of this item from sql query returning single value as code is primary key but I am unable to fetch value.I have written the following query:
    select model_code from BL_VEHICLE_ENGINE_NAME where catalog_code=:p9_catalog_code
    Here p9_catalog_code is the item displaying pop up lov.
    when i am specifying a particular value rather than bind value as (select model_code from BL_VEHICLE_ENGINE_NAME where catalog_code=123) then the description corresponding to this value is getting displayed through display only item.
    How can i fetch value from pop up lov and utilize that value to display required description.Is displaying description through display only item correct or is there any other way around through which this description could be displayed more effectively.
    Thanks
    Abhi

    Hi Abhi,
    Instead of pop up lov you can use cascade lov ie when u have data like say if u select code from ur table 123 and it has more than one description then u can use cascade lov it will query upon the first lov what u required.
    Or coming to ur problem
    for code pageitem say p1_code u are using pop lov (you can try select list instead of pop up lov )
    and for description u r using display column.
    and give the source as return single query only
    select descp from table where code=:P1code.
    Hopes this helps you
    Thanks & Regards
    Srikkanth.M

  • Display only non zero values  in rows

    Hi Friends,
                      I have a key figure "X', and it is split over 12 months (aging buckets), by using formula, but I want to filter values with zero values ie I want to display all non zer values only.
    This looks like
    Apr        100   
    May       200   
    Jun         200 
    Jul            0   
    Aug
    Sep
    Oct
    Nov
    Dec
    Jan
    Feb
    Mar
    In the above example I dont want to display 'Jul' at all, and the rest should be displayed, Wherein all the above are formula(Apr, May,......)
    Is it possible ?
    If so , what is method.
    I tried supress in query properties , Like supress zeros, but it is not working.
    Suggest me
    Points assured.
    Sanjay

    Dear Gupta,
                       In my case condition is not working, as I want to display values that ae non zeros. If I am using conditions, none of the values are displayed like Apr, May,Jun, Jul, etc........, I want to display all values except Jul as that values is zero as per my example.
    Please suggest
    Sanjay.

  • Non zero values in the extraction of the planning area

    In our DP implementation we have been trying to extract 2 key figures  from the planning area, one of the key figures might have zero values, when we set the indicator for the non zero values then it only eliminates the records for which both the key figure are zero but that is not what I want. I am trying to have a setting in the data source where we can reject the records even if one of the key figure has zero values.
    Are there any settings for that while we are generating the data source.
    Thanks in advance

    Hi Colin,
    This can be easily solved using a slightly different ABAP routine. You can assign the fields that you need to check into other field symbols and then check the value of those field symbols.
    Here's one possible solution. I based in from the ABAP code you posted.
    field-symbols: <LS_EXTR_BLOCK> TYPE any,
                         <ls_fcst> type any,
                         <ls_hist> type any.
    data: w_pos type sy-tabix.
    loop at ct_data assigning <LS_EXTR_BLOCK>.
    w_pos = sy-tabix.
    assign component '/BI0/9AVCORFCST'
       of STRUCTURE <LS_EXTR_BLOCK> to <ls_fcst>.
    assign component '/BI0/9AVCORHIST'
       of STRUCTURE <LS_EXTR_BLOCK> to <ls_hist>.
    if <ls_fcst> = 0 and <ls_hist> = 0.
      delete ct_data index w_pos.
    endif.
    endloop.
    Aside from the solution above, you can also define the structure of CT_DATA (that's basically the structure of the extract structure of your datasource). You can then assign the contents of CT_DATA to a field-symbol and the delete data using that field symbol.
    Here's an example:
    TYPES:
    TY_DATA_TABLE type table of *PUT THE NAME OF YOUR EXTRACT STRUCTURE HERE*.
    field-symbols:
    <FS_DATA_TABLE> type TY_DATA_TABLE.
    DELETE <FS_DATA_TABLE> WHERE /bi0/9avcorfcst = 0
    and /bi0/9avcorhist = 0.
    You can check the name of the extract structure by viewing table /SAPAPO/TSAREAEX field EXPORT_STRU. You can also see the name of the extract structure in debug mode by looking at the value of the parameter IV_DDIC_REFERENCE.
    Hope this helps

  • Material Attribute value display based on cost center value

    Hi,
    Is it possible to display the material attribute value based on cost center value. I mean for some cost centers I would like to display the value of other characteristic in place of material attribute. I am trying to create a query on MP.
    Any info in this regard will be appreciated.
    Thank you.
    Harshan

    Hi Adi,
    In Rows, Create a struture. Using New Selection, You can restrict the New Value to the cost center (Restrict again on those some cost centers) and material. And for this New Characteristic, you can have a attribute.

  • Update Excise base value in MRP based and Non-MRP based billing

    Hi Gurus,
    We need to update Excise Base Value for Statistical Condition type. How to configure the same ?
    Sl.No  Pricing Condition Type      Active   Statistical           Passed to Accounting        
    1        MRP Price (Statistical)                                                                               
    2        Abatement (Statistical)                                                                               
    3       Surcharge  (Active&Passed to Accounting)
    4      Assessabel value (Statistical)
    (No:4 This is the base for calculating Excise duties i.e Excise Base Value)
    5       List Price (Statistical)                                              
    6       Customer Discount(Statistical)                             
    7      Surcharge(Active&Passed to Accounting)                                                                 
    8      Net Price (Active&Passed to Accounting)                                                                     
    9      BED   (Active&Passed to Accounting)                                                                          
    10    ECess  (Active&Passed to Accounting)                                                                       
    11   SECess  (Active&Passed to Accounting)
    12   Total collected from Customer(Statistical)              
    Issue: When there is MRP Price higher than the List Price, then the Cutomer will be charged on the basis of Net Price only, but the duties amount to be paid to the government on MRP Price. so in this case I can not calculate Excise Duties on the Actual Net Price condition which is active and passed on to accounting. And always the Excise duties to be calculated on Assessable value(no:4). But that condition type if I make activate then it will pass to accounting and also getting added to the Net Value(KOMP-NETWR). How to come out of this situation.(as per the customer requirement both MRP based materials and non-MRP based materials are also considered in the same sale order i.e with the same pricing procedure).
    Becasue of this EXBAS is not getting updated in the J_1IEXCDTL.
    Gurus, Share your valuable experiences and suggestions.
    Thanks &Regards
    Sreekanth
    09611147585

    Dear Lakshmipathi,
    As per your suggestion, I have maintained Material Assessable Value and then also the duty values are calculating on the basis of Assessable value maintained in the Pricing Procedure. It is not taking the Material Assessable Value into consideration. And it is not getting updated the Excise Base Value.
    In which case Material Assessable value will be taken into consideration?
    How to update the Excise Base Value in J_1IEXCDTL tables?
    Thanks&Regards
    Sreekanth

  • How to Get ZERO and Non-ZERO Values in rowcount using Group by?

    Dear All,
    How can I get Non-ZERO and ZERO row count values in SQL using Group by? I can get non-zero values but when I want NULL should be returned to non-zero values it is ignoring ZERO values in output?
    Any hint?
    Thanks
    GQ

    Hi,
    Something like
    select count(case col
                    when 0
                    then 1
                  end) zero_count,
           count(case nvl(col,1)
                    when 0
                    then null
                    else 1
                  end) nonzero_countRegards
    Peter

  • Display non changeable Variables / restricted values on variables Screen

    Dear SAP-Experts,
    is it possible to display non changeable / restricted char values on the variables screen?
    regards
    Jürgen

    Dear Jürgen,
    Now I understand what you mean.
    I'm afraid this is indeed not possible, unless you create customer exit for i_step=3 to invalidate any change made by user in variable screen for this variable, which is not really a practical way.
    Actually the user would be able to see the filter information after query execution. The detailed location depends on whether you use BEx Analyzer or portal.
    Regards,
    Patricia

  • Calculating average of non-zero values only

    Hi all,
    I have a table containing a numeric column which contains processing time in mili seconds. this can range from zero to any value. I want to calculate average processing time for only those entries which have non zero processing time in a single SQL. can you please suggest any SQL function for this?
    I'm using Oracle 10g.

    Sure, decode the 0 values to NULL (aggregate functions like AVG do not consider NULL values).
    ME_XE?with data as
      2  (
      3     select 10 as col1 from dual union all
      4     select 0  as col1 from dual union all
      5     select 20 as col1 from dual union all
      6     select 20 as col1 from dual
      7  )
      8  select avg(col1) as col1_avg, avg(decode(col1, 0, null, col1)) as col1_avg_no_zero
      9  from data;
              COL1_AVG   COL1_AVG_NO_ZERO
                  12.5 16.666666666666667
    1 row selected.
    Elapsed: 00:00:01.07
    ME_XE?

  • How to find first non zero value from the numeric value or string?

    Hiii, Every body
              I have one numeric indicator in which some valuse is coming with the decimal value, lets say 0.00013, now i want to find the first non-zero value from this numeric indicator, then what should i do to do so? i have converted it in the string, but i could not find any method to find first non-zero value from that string or either from the numeric indicator????
          Can you please help me, how to do it? i have attached the vi and write all the description inside.
    Thanks in Advance,
    Nisahnt
    Attachments:
    Find first nonzero.vi ‏20 KB

    Just convert it to an exponential string and take the first character .
    Message Edited by altenbach on 05-10-2006 08:00 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    FisrstNonzeroChar.png ‏3 KB
    FindFirstNonzeroCharacter.vi ‏20 KB

  • Non-Zero Socket Indexing in Executions

    So The Team Has voted and I must use non-zero indexing for my test sockets
    I followed the guide to change the index in the Batch Dialog  
    http://digital.ni.com/public.nsf/allkb/A6D0EF1F4FE5EC94862570AE000CE374
    which doesn't matter so much anymore since I replaced the dialog. What does matter is the name of the executions and that they match the physical socket number.
    here is a more visual example.
    I did note the NOTE on the 
    How Do I Change My Test Socket Numbers to be Non Zero Based? 
    guide.
    Note: This procedure will not change the numbering of the Testsockets in the process model, as doing this would take more emultiple modifications.
    I only want to change the Executions Sockets above so they match the non Zero Test socket number in the dialog above. Any help would be appreciated.
    Solved!
    Go to Solution.

    Hi Taylor,
    In order to change the way the index is displayed, you can modify the Configure ListBar VI in TS Full LabVIEW UI Dependencies.lvlib. The specific modification is to change the string input of the ExecutionListConnection property node's DisplayExpression property. The input has the default value:
    "%CurrentExecution%\n" + ("%UUTSerialNumber%" == "" ? "" : (ResStr("TSUI_OI_MAIN_PANEL", "SERIAL_NUMBER") + " %UUTSerialNumber%\n")) + ("%TestSocketIndex%" == "" ? "" : ResStr("TSUI_OI_MAIN_PANEL", "SOCKET_NUMBER") + " %TestSocketIndex%\n") + "%ModelState%"
    You can replace this with the following code:
    "%CurrentExecution%\n" + ("%UUTSerialNumber%" == "" ? "" : (ResStr("TSUI_OI_MAIN_PANEL", "SERIAL_NUMBER") + " %UUTSerialNumber%\n")) + ("%TestSocketIndex%" == "" ? "" : ResStr("TSUI_OI_MAIN_PANEL", "SOCKET_NUMBER") + "str(val(%TestSocketIndex%)+1)\n") + "%ModelState%"
    The tag of interest is specifically: "str(val(%TestSocketIndex%)+1)\n".
    Let me know if you have any questions.
    Warm Regards,
    Daniel D.
    National Instruments
    Automated Test Software R&D

  • AutoSize not working properly in TextField when using non-zero line spacing

    When using non-zero line spacing, the autoSize property is not functioning as expected, causing text fields to scroll that shouldn't.  Also, when using device fonts, the sizes of the TextFields are wrong in the Flash IDE.
    I have a TextField whose height is supposed to be dynamic, depending the width of the TextField.  wordWrap is true, the text is left aligned, and the autoSize value is flash.text.TextFieldAutoSize.LEFT.
    When the TextField's width is adjusted, the height increases or decreases as expected, but when I scroll the mouse wheel over the TextField, it allows a single line to scroll out of view.  This should not be happening.  The autoSize property should ensure the TextField is large enough to neither require nor allow scrolling.
    Has anyone else encountered this issue or know how to fix it?
    Update: Been a problem since at least 2006! > http://blog.nthsense.net/?p=46
    http://www.kirupa.com/forum/showthread.php?288955-Disabling-textfield-scrolling   Bug is caused by using a line height ("line spacing" in Flash) larger than zero, for example 1.0pt.  It looks like when I reduce the line spacing of the text field to zero, the issue goes away.  There doesn't seem to be anything wrong with how autoSize is calculating the required height of the text (i.e. it is exactly textHeight + 4 pixel gutter, and drawing the rectangle (2,2,textWidth,textHeight) aligns visually with the text), so it must have to do with how the TextField is deciding whether it needs to scroll or not, and that separate calculation is being thrown off by the non-zero line spacing.  The additional non-zero spacing at the end of the last line could be making the TextField think it needs to scroll, even though it's hight is sufficient at "textHeight + 4".  Apparently the problem manifests when using a non-zero leading value as well.
    In fact, it has to be related to the leading value exactly, since the following code stops the textfield from scrolling.
    //body is TextField
    var tlm:TextLineMetrics = body.getLineMetrics(body.numLines - 1);
    trace(tlm.leading); //traces "1" here.  traces zero when line spacing is zero, and traces larger values with larger line spacing values
    body.autoSize = flash.text.TextFieldAutoSize.NONE; //turn off autosize so the height can be set manually
    body.height += tlm.leading; //increase height of textfield by leading value of last line to cause scrolling to be turned off.
    Honestly, this is pretty unacceptable bug.  First of all, scrolling should not be sensitive to trailing line spacing, because autoSize and textHeight do not include it. It need to be consistent, and I think textHeight and autoSize setting height = textHeight + 4 is correct.  Vertical scrolling should use textHeight as it's guage for whether scrolling is necessary, but instead, it's obviously involving the leading values of the last line.  At the very least, vertical scrolling should simply be disabled when autoSize is turned on and wordWrap is true, because the TextField should be big enough to fit all the text.  The workaround of manually adjusting the height is also no good, since turning autoSize back on will immediately change the size back and trigger scrolling again.  I also shouldn't have to set line spacing to zero just to use the autoSize feature, since the scrolling calculations are wrong in this way.

    No, lol.  Luckly, I replace most of my TextFields on the display list with my subclass TextFieldEx.  I just call a clone method that accepts a TextField and returns a TextFieldEx with identical properties.
    I corrected the problem via modifying the subclass to behave differently when autoSize is not NONE and wordWrap is true.  Under those conditions, the maxScrollV and scrollV property values are fixed at 1, and the class listens for its own SCROLL event and sets scrollV to 1 when it occurs.  That allows me to leave everything else alone, including text selection, and use whatever line spacing I want.
    The modification seems to work fine so far.
    For anyone interested in doing something similar, here is a clone method that will copy a TextField.
    public static function clone( t:TextField ):TextFieldEx
                                  var te:TextFieldEx = create( "", t.width, t.type, t.multiline, t.wordWrap, t.selectable, t.embedFonts, t.defaultTextFormat );
                                  te.alpha = t.alpha;
                                  te.alwaysShowSelection = t.alwaysShowSelection;
                                  te.antiAliasType = t.antiAliasType;
                                  te.autoSize = t.autoSize;
                                  te.background = t.background;
                                  te.backgroundColor = t.backgroundColor;
                                  te.blendMode = t.blendMode;
                                  //te.blendShader = t.blendShader;
                                  te.border = t.border;
                                  te.borderColor = t.borderColor;
                                  te.cacheAsBitmap = t.cacheAsBitmap;
                                  te.condenseWhite = t.condenseWhite;
                                  te.displayAsPassword = t.displayAsPassword;
                                  //te.embedFonts = t.embedFonts;
                                  te.filters = t.filters;
                                  te.gridFitType = t.gridFitType;
                                  te.height = t.height;
                                  te.opaqueBackground = t.opaqueBackground;
                                  te.restrict = t.restrict;
                                  //te.selectable = t.selectable;
                                  te.sharpness = t.sharpness;
                                  te.thickness = t.thickness;
                                  te.transform = t.transform;
                                  //te.type = t.type;
                                  te.useRichTextClipboard = t.useRichTextClipboard;
                                  //te.wordWrap = t.wordWrap;
                                  //Assign text last
                                  te.htmlText = t.htmlText;
                                  return te;
    //And the create method it uses
    public static function create( text:String = "", width:Number = NaN, type:String = null, multiline:Boolean = false, wordWrap:Boolean = false, selectable:Boolean = true, embedFonts:Boolean = false, font_or_textformat:*=null, size:Object=null, color:Object=null, bold:Object=null, italic:Object=null, underline:Object=null, url:String=null, target:String=null, align:String=null, leftMargin:Object=null, rightMargin:Object=null, indent:Object=null, leading:Object=null ):TextFieldEx
                                  var tf:TextFieldEx = new TextFieldEx();
                                  tf.width = isNaN(width) ? 100 : width;
                                  tf.defaultTextFormat = (font_or_textformat is TextFormat) ? (font_or_textformat as TextFormat) : new TextFormat( font_or_textformat as String, size, color, bold, italic, underline, url, target, align, leftMargin, rightMargin, indent, leading );
                                  tf.embedFonts = embedFonts;
                                  tf.multiline = multiline;
                                  tf.wordWrap = wordWrap;
                                  tf.selectable = selectable;
                                  tf.type = type;
                                  tf.text = text; //setting text last ensures the text line metrics returns correct values
                                  //Initialize the TextField's size to fit the text.
                                  if (!multiline)
                                            //When in single-line mode and no specific width is given,
                                            //expand width to entire line.
                                            if (isNaN(width))
                                                      tf.width = tf.textWidth + 4; //match width of text
                                  //Height is always automatically adjusted to fit the text by default.
                                  //It's better than the arbitrary 100px default height.
                                  var minimum_height = tf.getLineMetrics( 0 ).height;
                                  var h:Number = tf.textHeight;
                                  tf.height = (h < minimum_height) ? (minimum_height + 4) : (h + 4); //match height of text, ensuring height is at least enough to display one line, even if there is no text
                                  return tf;

Maybe you are looking for

  • Adobe Reader 9.0 Cannot Play Video Clips

    As caption, my pdf file has some video clips inside. When I open the videos, after answer the trust issue, an error message pop up: Warning: JavaScript Window - Acrobat has encountered an error while playing this media clip: 你的系統上未安裝任何驅動程式.(In Englis

  • AFAB posting end of the year on period 13 instead of 12

    Hello, I've this request from accounting department. They would like to post depreciation for area 01  on special period 13 instead of 12 and with the following dates: DOCUMENT DATE:  15.04.xx+1   (following year) POSTING DATE: 31.12.xx This because

  • Problem with light room cc install

    after downloading LR CC via my cloud account all I get is a quick splash screen and then nothing.  Tried uninstall and reinstall and reboot computer  -- neither helped.  Running OS  X 10.10.3

  • My macbook pro screen page jumps around without touching the touch pad

    When I am on Mail or my Firefox Browser the screen keeps jumping forward, back or to another site without my touching the trackpad. (Macbook Pro 2014.  At first I thought it was the Firefox Browser, but it also happens on "mail" (verizon.com).  This

  • Roles in KM EP

    Hello, I have an ask regarding roles in SAP KM. I want to set documents with specific criterias (moduls of SAP, project phases, document type, sector, ...). In my company there are different roles: consultant, developer, manager... Every role wants a