Sort the Key Figure and put a count on it

Hi Experts,
I have a  situation where I have to sort the value of the Key Figures in ascending order and put a count on them.
Kindly elaborate me a little on this.
Thanks in advance,
Kannan

Hi Kannan,
    If you want to do this setting at the Query Designer level, then select the Properties section for the
desired Key figure say K1.then select the "Calculations " tab.  Under the Local calculations for "Calculate Results as" select "Counter for all detailed values".Save the query.
Open the query (say) at Bex Analyzer. From  the context menu for the key figure K1, select "Properties"-->then under Sorting tab select the required order.
The options mentioned above, i.e  "calculations" and "Sort" is available on web too in the context menu for the key figure.
The above mentioned setting wil be a display setting>You can modify it as per your requirement at Query Designer.
NOTE:
If your requirement is such that K1, should always display the counter , then while creation of the K1 itself , you can select the Exception Aggregation of Type "Counter(all values)". Then, the setting will be permanent.(design time)
Hope the information helps!
Best Regards,
Akshata
Edited by: Akshata Shenoy on Jun 2, 2009 12:25 PM
Edited by: Akshata Shenoy on Jun 2, 2009 12:27 PM

Similar Messages

  • Sorted by Key Figure

    Hi People,
    I´ve got a query and i need to show the records sorted by a key Figure, for exemplo:
    Caracterist     -           Key-Figure
    100                -              1
    100                -              2
    100                -              3
    100                -              4
    200                -               2
    200                -               3
    200                -               4
    200                -               5
    Does anybody knows how to do that ?
    Thanks,
    Norris.
    Edited by: Norris Silva on Jul 26, 2008 5:36 PM
    Edited by: Norris Silva on Jul 26, 2008 5:38 PM

    Try applying a Top N condition on the key figure and use a large value of N. Update back if it works.

  • Sorting a Key Figure by default in a query

    Hi,
    I'm trying to set up a query with a key figure that is sorted in descending order by default everytime.  I tried creating the following condition:
    Key Figure - Sales Volume
    Operator - Top %
    Values - 100
    This sorts the key figure in descending order to a point.  When I add a characteristic to the report (for example, sold to), the sorting is no longer active.  I would like this key figure to remain sorted in descending order regardless of the any manipulation to the report.  But, I'd still like the user to have the ability to change the sorting if they want to sort by another key figure (ascending or descending)
    I'm using the BI 7.0 Query Designer.
    Thanks!!

    Check this:
    Sort Key Figures and Maximum query result
    Organising key figures in BEx Query Designer
    ordering display in a KF
    Hope it helps..

  • Setting the values of the key figures

    Hi,
    I have a problem in a query. There is a variable chosen with a range for 0calmonth. For the two of the key figures, I need to restrict the key figure to the first period and for the other key figure I need to restrict to the last period. However, what I need more is that if in the restricted period there is no value for that key figure it should get the first period that it has a value. For example:
    Our variable set as: 02.2006   -  05.2006
    And our data is
         CalMonth          KeyFig1     KeyFig2
    A     02.2006                 0            7
    A     03.2006                 0           8
    A     04.2006                 4            9
    A     05.2006                  5            0
    I want to see in the query as:
                  KeyFig1    KeyFig2
    A              4                9             
    When I add the results with first value and last value, I can see these figures in the general results section. But this time I have to hide the key figures and show only the results section.
    Any idea on preparing such a query?
    Thanks in advance...

    Hi,
    try using conditions:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/2695d2fd2f0d23e10000000a1553f7/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/43/b57138c1afbd20e10000009b38f889/content.htm

  • How can i do to see the master and text values of the Key figure 0UNIT

    Hi gurus,
    How can i do to see the master and text values of the Key figure 0UNIT, please step by step, i m in the key figure 0UNIT but i want to see if the UNIT  for example BX = BOX, something like this is that i want to check,  thanks!

    If you look at the unit tables, you will see the values and texts.  It's in SPRO, not in RSA1.  My access is limited on my system here, but the documentation says to go to t-code CUNI.  I believe in that tcode you can look at all of the unit equivalencies and what each unit's text is ..... like an ea means each; KG = Kilogram; etc...
    I am on an 3.x system, so in SPRO I go to BW CIG=>General Settings=>Check units of measurement.
    Brian

  • Can i use the key figure total delivery time in days in rows and how is can

    Dear all,
              Can i use the key figure total delivery time in days in rows and how is can.but all the key figures r used in rows but i cannot use in column.i want bothin rows and in column  at a time ,can this is possible,and how.

    Hi,
      yes you can.You will have to use structure in the row.
    Right click on the row and create a new structure.
    In this structure you can add key figure.
    Maximum number of structure a query can have is two
    Please assign points if it helped you.
    Regards,
    Senoy

  • I accidentally spilled tea on my macbook and the keyboard is sticky, I took off the key "A" and now I can't put it back on. What can I do or where can I take it so it can be fixed?

    I accidentally spilled tea on my macbook and the keyboard is sticky, I took off the key "A" and now I can't put it back on. What can I do or where can I take it so it can be fixed?

    So is that key the only thing that does not work? How much tea was spilled and did it dry out completely or ? Was there sugar in the tea?
    If the key is the only thing, I'd take it to the nearest Genius Bar and ask if they could pop it back in.

  • Sorting by Key figure

    Hi Guys
    How can I sort the query by a key figure or calculated key figure when I run the query, I know I can do it by rigth click on the key figure after the query is executed but I want the query to be sorted by the key figure as soon is executed.
    Thanks
    Edited by: Antonio Rodriguez on Jul 2, 2008 11:20 PM

    Antonio,
    Define a new condition and select your key figure and define TOP N where N is very high number let say 10000 for sorting them in ascending order and Bottom N for sorting in descending order.
    do revert back if ur prob is solved.

  • Sort By Key Figure?

    I am using BEx Query Designer to build a query and I have two key figures. I would like to sort the results by one the ascending values of one of my key figures. The output seems to sort it by the characteristics by default. Is there a way to have the query sorted by key figure values instead?

    The default sort option by characteristic only. I don't  think there is an option to sort by key figure.
    However, you can use conditions to display Top N, Botton N, Top %, Bottom % records. For instance you want to show top 10 customer by Sales Amount key figure, crate a condition on sales amount key figure and select the operator TOP N and give the value 10. It will show top 10 customers by sales amount in descending order. I hope this helps.
    Edited by: sapwings on Feb 24, 2011 4:53 PM

  • Selection Key Figures and Key Figures

    I am building a query and I need to combine Key Figures and Selected Key Figures so that they appear on the same row.  However, when I try to do this I get a message that you cannot put the elements in the same structure.  However, if I put in different structures they will not be aligned.  How can I overcome? Thanks

    if i undertd your issue correctly..u have one KF struxture and one characteristic structure.In characteristic structure,u r having restricted characteristics and u r tyring to have a KF in char structure???if so,it is not possible..where exactly u r getting error?it will not allow you to drag and drop Kefigure into Query deisgner except into KF structure..
    in char structure,if u r gng with new selection,u will not have option to select any KFs.
    it could be better if u provide an example rather than explaining theoritically.
    please note that u cant have a KF in characteristic structure .u can have a char in KF strcucture with a KF combination i.e. Restricted KF.
    Message was edited by: Murali

  • What is diffrernce between key figures and characteristics?

    Hi all,
    I am a newbie to SAP BI....i am doing Masters in ERP(SAP)....I have confusion about what is basic difference between key figures and characteristics?
    Why do we have to define attributes in characteristics?
    If any one can refer me a thread that answers my questions or explain with very lucid example I will highly appreciate it.....please answer this question as I have just spend 4-5 months studying BI and have not really implemented in the Industry but we do have access to SAP BI where we perform tutorials....
    Also please let me know the links to materials where basics of BI are explained in a very simple way.....
    Thanks,
    Regards,
    Rahul

    KF is anything which can quantitatively measured: Amount, Number, Value, Price... whatever you want to measure is called Key Figure. This key figures are also called KPI (Key Performance Indicator). If you want to know the number of sales orders, the number of deliveries, the amount of deliveries... all are key figures
    And to add to that, key figures are also divided into two:
    Cumulative KF: Like I said, amount, value, price
    Non-cumulative KF, this is different kind of key figures which shouldn't be summed up, for example: Age, Inventory, Number of Employees.  When  you measure this key figures, you don't add the age of every body, because that doesn't make any sense, but adding the sum of all deliveries, or adding all Sales does make sense, that is the difference between the two key figures.
    Characteristics: are anything which couldn't be quantitatively measured: material, customer, plant, employee ID and so on...
    Aways, in BI you measure the KF against the Key figures..
    thanks.
    Wond

  • Mixing Key Figures and Characteristics in 2004s Table Display

    In a 3.x query definition using table display, I could put a key figure in the middle of the characteristics.  The results would be columns Char1, Char2, KF1, Char3, for example.  The same query upgraded to 2004s insists on displaying the key figure at the end of the characteristics, even with the Query Properties / Data Formatting set to Tabular View (in BEx Analyzer).
    Any ideas on how to keep the key figure in the middle of the characteristics?
    Thanks.

    Hi,
    New QD wont support table display. You need to use Report designer for this.
    Thanks & Best Regards,
    Rajani

  • Populating the key figure in the Cube

    hi frineds,
         I need to populated the custom key fiugre added by me in the cube using the update rule. But if i see the tables of the cube it is seperate for every dimension and key figure. how can i select the particular record from the key figure table with out the reference of the dimensions table.
    Thanks
    Prem

    so you want to
    1. read particular record from cube
    2. populate the amount there.
    but populating the amount directly to infocube is not advisable and not feasible as well.
    my suggestion will be virtual infoprov based on transformation
    you will have to write your logic there and you can populate the amount based on billing number (you said you have amount against billing number).
    at query runtime based on transformation/logic your amount will be populated.
    only drawback reduced query performance

  • Fiscal year in the columns outside the key figure structure

    Dear Experts
    I have a report requirement to show the keyfigures in the columns from year 1 to year 10 and in each year there are 4 keyfigures each restricted to 1 quarter for 4 quarters.
    So, there are too many keyfigures to create.
    I am using fiscal year in the columns outside the Key figure structure containing the keyfigures restricted at each of 4 quarters.
    So, when the report displays, all the 10 years will automatically be displayed.
    The problem is one of the 4 quarter level keyfigures needs to be restricted by calendar year.
    How can I read what is the fiscal year for each column at runtime so that I can reference this value to determine the calendar year ?
    As you know, each FY spans 2 Calendar Years. So, i need to restrict this on the 4th keyfigure by calendar year but while having the FY outside the keyfigure structure i can get all the FY, I am not sure how to access this value at runtime so that eg.
    if FY for column 1 is 2010, i can set calendar year to be 2010 to 2011.
    Hope you can give me some clues.
    Thanks you Gurus!
    Best regards
    John

    Dear Sunnybt
    Copy Riyes,  I find your response interesting. Please could you elaborate your idea of using condition in more detail.
    Sorry for my late response.
    Allow me to clarify my statement, which you are right, is unclear.
    By :
    "if the current QuarterFY is less than the current QuarterFY"
    I mean :
    eg. user enters FY range : 2009 to 20NN  (eg. 2017)
    KF_column1_FY2009_Q1______KF_column2_FY2009_Q2____KF_column3_FY2009_Q3______KF_column_FY2009_Q4______KF_column_FY2010_Q1______KF_column2_FY2010_Q2____KF_column3_FY2010_Q3______KF_column_FY2010_Q4_____KF_column_FY_NNNN_Q1
    For each column, where the FY can be any year range entered by user,
    the Text Description of the Column should show either 'Actual' or 'Plan' based on what is the current FY Quarter at runtime.
    If the FY Quarter (eg. 1st column is 200101) is before current FY Quarter (i.e 201103), then the Description of this column should be "Actual" , else "Plan".
    In my current design, I am unable to use customer exit text variable to meet this requirement.
    So, I like to check with you for fresher ideas.
    If not , I would use a workbook, which I am avoiding as the user needs to drilldown and I believe drilldown is not possible in workbooks where report layout needs to be rigid or cell positions fixed. Of course, unless there is a way out of this which I do not know.
    Best regards
    Bass

  • Cumulative key figure and non cumulative key figure

    Hi BW Expertz
    Could any one give me the clarification about cumulative and non cumulative key figures .Why we go for cumulative key figure and non cumulative key figure.If any docs could u just mail to the following [email protected]
    Thanx In advance
    Best regards
    sankar prasad

    Cumulative values are those key figures (KF) that are cumulated using all characteristics, thus also using time.
    Ex: Sales revenue, Quantity....
    Non-cumulative values are those key figures that are measured in relation to a period in time; they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so called exception aggregation.
    Ex: Number of employees, Inventory, Stock prices, Account balance,.....
    AGGREGATION TAB
    Non cumulatives are evaluated by non-cummulative values. Non-cummulative values are special key figures that are different from other key figures (cummulative values) in data transfers and saving as well as in aggregational behaviour. These are measured in relation to a period in time; that is to say, they cannot be meaningfully cumulated over time. Non-cumulative value are summaraized over-time using exception aggregation.
    Non-cumulative values such as 'number of employess' are cumulated using characteristics such as 'cost center'. It does not make any sense, however, to cumulate the number of employees using different periods. The result at the end of any particular period would be the sum total of number of employees for each posting during the period. This would of course be wrong.
    Instead, the aggregation of the KF can be defined as exception aggregation wherein an additional references characteristics is utilized to tell BW which value to use during the period, in this case, 0CALMONTH is used, in the above example, to indicate that only the last value of 0HEADCOUNT, updated by costcenter, is to be taken for any calender year and month.
    Cummulative vs Non-Cumulatives
    The purpose of non-cumulatives is to optimize the data transfer in BW, the data retention and the database access. The data transfer from OLTP to BW is minimized and only the meaningful data is saved and processed.
    It is recommended that you use non-cumulative values for areas that dont change frequently such as warehouse stock or number of employees.
    Non-cumulatives are modeled in BW using a non-cumulative value with the fields belonging to it for storing the non-cumulative or for inflows or outflows.
    Non-cumulative values are stored with special KF that differ in terms of data transfers and aggregational behaviour.
    Features of NON-Cumulative Values Transfering and Saving Data:
    - NC values are mapped uisng one KF for NC changes or two KF for inflows and outflows.
    -NC are transferred in an initialization run and the change runs that follow (initialization can also be omitted here)
    - A non-cumulative value always has a time-related exception aggegation.
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62dee07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm
    with Example
    Re: Non-Cumulative keyfigure example
    Re: Types of non-cumulative keyfigures
    /community [original link is broken]
    /community [original link is broken]?forumID=131&threadID=29557&messageID=273049
    /community [original link is broken]?forumID=131&threadID=111914&messageID=1248243
    ****Assign Points If Useful*********

Maybe you are looking for

  • Installation failed on WIN 8

    Hi Forum, can someone tell me what could cause this error while installing GW 2014.1 (not HP1) on WIN 8: "Failed extract file "DLL.ini" from the binary table" Thanks, Pascal

  • WWW service is not able to start via Microsoft Failover Cluster generic service resource

    Environment Cluster Nodes = two Cluster Nodes OS = Windows 2008R2 Application = IIS Query I created generic service resources of many windows services under Microsoft Failover Cluster and they are failing over successfully but when I create a generic

  • Macbook Pro doesn't boot from hard disk

    I recently applied an open firmware password to our Macbook Pro. A co-worker tried to boot via the t-funtion which obviously doesn't work when the open firmware password is active. He forget to contact me so he tried to get it to work using some star

  • ERRORLEVEL and getenv.

    I am running a batch file via CVI and I want to check if the command I execute in the batch file is successful.  My code is: sysReturn = system("WifiConfig.bat"); pBatchFileReturn = getenv("ERRORLEVEL"); The problem I am having is that getenv always

  • Why is my download of itunes only in french

    why my download of itunes only comes in french