Hard filter on Key Figures

Hi,
I am trying to understand an existing report.
There is just one keyfigure (AMOUNT) in the report and it is put in the hard filter.
In the Columns, a structure is created with New Selection. This Selection calculates Year To Date and other conditions (but there is no mention of Key Figure).
In the report Output I get YTD calculation of AMOUNT in the Columns.
1) I want to know what is the purpose of putting the Key figure in the hard filter.
2) If we create a New Selection, does it automatically refer to the key figures selected in the Query?

In General Key Figure is kept in the Filter so that we have an option of creating 2 Characteristics structure which other wise we can have only one KF Structure and one Char Structure.
And also in such scenarious only one Key Figure is supposed to be kept in Filter. And yes the New Selection created automatically refers to that Key Figure.
Cheers,
Neel.

Similar Messages

  • Query filter over key figure

    Hi,
    A report need to have a query level filter with key figure (to allow +ve values) but not possible for key figures.
    Scenario- every day deltau2019s get added in cube and final report publishes aggregated value. But requirement is to show historical value not the aggregated. This is how cube data looks like-
    Ex-
                                            Receipt Date    Profit Center  Amount(Key figure)  ZDAYS (Dimension)   ZDAYCOUNT(Key figure)
    First Day Posting            14/09/2009            K                     9800                             1                                          1
    2nd days -ve entry         14/09/2009           K                    -9800                             1                                         -1
    2nd days actual posting 14/09/2009           K                      6000                             2                                          2
    3rd days -ve entry          14/09/2009           K                    -6000                             2                                         -2
    3rd days actual posting   14/09/2009          K                     5000                              3                                          3
    Now report supposed to show posting values of every day like for Day 1 and Day 2...tried using conditins & other aggregation options but no luck. Does any one has a clue?

    Hello,
    The only thing i could think of is as below: Check if its plausible.
    1) Add a new infoobject ZFLAG (TYPE CHAR, LEN 1) in your cube.
    2) Now write a routine to populate values in this object while loading data. The routine is a simple one with below logic:
    if KF_value < 0.
    ZFLAG = 'N'.
    else.
    ZFLAG = 'P'.
    endif.
    3) Now for every -ve value record the ZFLAG will be tagged as N.
    4) Now in query filter out all the records with ZFLAG = N.
    When you need aggregated report, simply dont use the ZFLAG in the report and the report will show up aggregated values.
    Regards,
    Shashank

  • Can we filter the Key figure ( by not using Bex Conditions)

    Hello Friends,
    I have a requirement in which I am passing the result of one query "A" to another query "B" ( using replacement path). Also there is a requirement to filter the keyfigure of the query "A"
    Problems I face:
    1) If I use Conditions, it does'nt filter the actual rows from the info cube, but just the query result
    2) Hence when I pass the query result of "A" to query "B", it sends more records which I dont need.
    Question:
    Hence is it possible to filter the keyfigure values at the database level?
    Thanks... Hope some one will guide me.....................

    Hi,
    I've had a similar problem in the past, not specifically for a replacement path but because the number of rows returned by the query was too great to use conditions. In the end what I did was create a characteristic char version of the key figure that was loaded from the same source as the key figure. You then effectively have a key figure that can be filtered in the same way as a normal characteristic.
    Hope this helps.
    Gareth

  • Filter by Key Figure or Calculated Key Figure?

    Hi,
    Is it possible to filter a report on key figure or calculated/restricted key figures? If yes, then how?
    Here is an example of my problem:
    I have a restricted key figure for invoice – that picks out the last invoice value between two dates (variable), for instance 2004-01-01 and 2004-12-31. Now, in my query I would like to EXCLUDE materials which don’t have any invoice values between those dates:
    Now:
    Material A 1000 USD
    Material B
    Wanted:
    Material A 1000 USD
    Best Regards
    /Daniel

    Hi Daniel,
    you would use Conditions to achieve this! You can create them in the Bex Query designer.
    Regards,
    michael

  • Change order of key figure is not working in Web report output (using WAD)

    Hi,
    We are using BI 7.0, release 701 and level 008. We are facing problem in WAD (web report output). When ever we do 'Select filter' for key figures and 'change the order' of key figures, it does not get reflected in new order. Though drag and drop of key figures is working.
    Though same change order is working fine in Bex Analyser.
    Kindly suggest some inputs.
    Thanks.

    Hi,
    On Which Service Pack are you on?WAD has this feature of re arranging the keyfigures in BI 7.0 for SPS 14...
    Regards,
    Bhagyarekha.

  • Restricted Key Figure in Crystal Reports

    Hi Gurus, I have to implement the Restricted Key figure logic in Crystal reports. I am able to filter the data at a report level but I need to filter the key figure with a particular characteristics. We try to implement this logic with subreport but client is forcing us not to use subreports. Please help me.
    Thanks
    Sasi

    Hi,
    you should make the restricted keyfigure as part of the BW query and Crystal Reports will leverage it.
    Ingo

  • Hide Key Figures Dynamically

    Is it possible to hide Key Figures Dynamically in a Bex report ?
    the scenario is like this : based on the user selection of a certain value of a filter, some key figures are not relevant and we would like to hide it.
    Are these any user exits for the same ?
    Or are there other options ?
    thanks in advance..

    HI LH,
    First find out the object in the report with has only unique value as filter and gets the values for that report like for example chat of accounts  if u filter on it it for the value 1000 other than 1000 it wont get the values .
    select that then create customer exit variable and put it on 3 key figures kf1 and kf2 and kf 3and hide it and write a formula kf1kf2kf3.
    write an exit if filter vaue = A  char of accounts =1000  if not char of accounts =9999.like that write a rountine .
    when u execute a report it on filter b it get the values for KF3 not for other 2(other 2  wont get any values when its add up it will display for 3 only).but with filter A it will get the sum up of kf1 and kf2 not seperate reults.

  • How to show filter values of restricted key figures in BEx Analyzer?

    Hi,
    I have following report.
                         Quantity USA        Quantity China
    Product           100                        150
    Quantity USA is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = USA
    Quantity China is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = China
    I notice that when I put only one of these resticted key figures into the query, there is a line in the filter area of the report in the BEx Analyzer that shows the characteristic 'country' and the value on which it's restricted in the restricted key figures.
    E.g.:
    Country          USA
                         Quantity USA
    Product           100 
    If I put both restricted key figures in the query, this line is not shown.
    Does anyone of you know how I can display this line again when using multiple restricted key figures like this in the query?
    Thanks!
    Regards,
    Pascal

    Hi,
    I have following report.
                         Quantity USA        Quantity China
    Product           100                        150
    Quantity USA is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = USA
    Quantity China is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = China
    I notice that when I put only one of these resticted key figures into the query, there is a line in the filter area of the report in the BEx Analyzer that shows the characteristic 'country' and the value on which it's restricted in the restricted key figures.
    E.g.:
    Country          USA
                         Quantity USA
    Product           100 
    If I put both restricted key figures in the query, this line is not shown.
    Does anyone of you know how I can display this line again when using multiple restricted key figures like this in the query?
    Thanks!
    Regards,
    Pascal

  • How to filter Key Figures - not using the GUIDs

    An example How to filter Key Figures may look like this:
    http://XXX.com:8000/sap/bw/BEx?sap-language=DE&bsplanguage=DE&CMD=LDOC&TEMPLATE_ID=XXX&FILTER_IOBJNM=41F68RV4ZB5VYSARODYU70CAQ&FILTER_VALUE=41F68SAI18DB01DO023IR49QA
    The GUIDs consume the space in the URl. Is there a way to work with an alias.
    To use the technical name of a Key Figure defined in the Query does not work.

    Hi Cherie,
    This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
    Cheers

  • How to filter rows according to calculated key figures in cube?

    in my cube , i use V3 update for scheduleding lines of sales items.For example , in last delta update , valid row is last column ,other two rows make zero each other for key figures but i dont want to display first two rows in Bex.i want to get rid of these rows.because of not deleting previous data in cube, how to discard the rows , can i filter by calcuated key figures in query analyzer (like not display if sum of key figures zero)   
    Doc_No       Doc_Type   Reject_St          Item_No     Net_Price(Key_Fig)     Total_Pric(K_F)
    0002207615    TA           99               10        17,000             295.630,00
    0002207615    TA           99               10        17,000-            295.630,00-
    0002207615    TA           04               10        17,000             295.630,00

    if you do compression with <b>Zero Elimination</b> your problem will be sloved.
    or
    In the calculated Keyfigure, set to After Aggregation.
    Nagesh Ganisetti.

  • How to Filter Key Figures in Columns Based on a Selection

    Hello,
    I am trying to get my columns to dynamically filter based on some selection and would like to know what is the easiest way to make this happen.  My scenario involves displaying 12 months of data for an actual / budget view.  So we may need 8 months of actuals and 4 months of plan, 9 months of actuals and 3 months of plan, 10 months of actuals and 2 months of plan, etc.  The row is cost element and my columns are restricted key figures.  I want the user to be able to easily select an 8/4 look and the dynamically remove the unnecessary columns.  Same with a 9/3 or a 10/2.  Besides these 12 months of Act / Bud, I have 12 months of plan, 12 months of actuals for other years, so I have lots of key figures.  Just doing the basic filter can be too cumbersome.
    Thanks,
    Cherie

    Hi Cherie,
    This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
    Cheers

  • Expand clustered Key Figures in filter panel (based on BW queries)

    Dear colleagues,
    in my BW query, I have created several key figures and have clustered them below Error Categorization 1 and 2.
    In my Design Studio application I use a filter panel to select the key figures. The goal is to show the first level (error cateogization 1 and 2) at a first view with the option to expand these so that the detailed categories can be shown and selected.
    Currently only the subcategories are shown in the filter panel in Design Studio.
    Could you help here?
    Thanks,
    Katharina

    Go to transaction RSRT, select your query, click on the properties tab and tick the selection box "Use Selection of Structure Elements". This is recommended practice where there are lots of key figures.

  • Filter query on Key Figures

    How can I filter a query based on Key Figures? When I use conditions, the results totals don't change. I need the results to reflect the filtered data.

    Angie,
    There is no standard functionality to achieve this, but you can do it using formulas.
    To check the problem:
    E.g. You have
    Material  Qty  Value
    A           1      100
    B           2      300
    C           4      1000
    Result    7      1400
    You want to be able to filter out Materials with Qty less than 2 so you are left with just Materials B and C and the result shows Qty 6, Value 1300.
    Create a formula, say 'QtyH'.
    The formula detail should be: Qty > 1
    This formula will display 1 for Materials B and C, Zero for Material A.
    Create a second formula, say 'Qty Filtered'.
    Formula detail needs to be QtyH * Qty.
    Change Calculations tab to Calculate Results as Total.
    This formula will display Zero for Material A, 2 for B and 4 for C.
    Result row will show 6.
    Repeat for the Value KF.
    To simplify this you can actually combine the logic in 'QtyH' and 'Qty Filtered' into one Formula. See SAP Help under Defining New Queries; Defining Formulas, Boolean Operators
    Also, if instead of QtyH being Qty > 1, you use a Formula Variable, you can give users the option to specify what filter level they want.
    E.g. Qty > 'MyFormulaVariable' where the formula variable is created as Manual Input/Default Value.
    Hope this helps!

  • How to filter Key Figure according of "Counter"

    I am on BI7 now, I need to set a filter in query, according the counter, means that there are 37 lines in the query, but user only want to show the buttom of 20%, means after sort according the key figure, only show the record from buttom, means number 37 record to 37*0.2 = 7.4, means only show 8 lines from buttom after sort, I can not find any condition fit this, can any one help?

    Hi,
    You have the option of selecting Top N hits in your query May be you can try something out there.
    Regards,
    Pramod

  • Can we suppress the key figure from the filter values?

    Hi,
    I have one restricted key figure.
    1) Is it possible to hide the key figure for calender year 2009 and display it for year 2010. I mean can we hide the column dynamically?
    2) Can we grey out the key figure from filter criteia so that it cannot be checked for specific calender year?
    eg if i have 3 key figures as One , Two , Three.
    In filter , it will show One , two ,  three  and the checkbox . Is it possible to grey out the checkbox so that user will not be able to check it or tick it?
    Regards!

    Hi,
    1) I don't think we can hide it dynamically.
    2) I dont think we can give such a option in the query designer.can you explain what is ur exact requirement.
    Regards,
    Ravi

Maybe you are looking for