Is it possible to sort by two Key Figures?

Hello experts,
This is our situation: On a Key figure we have created a condition to display the BOTTOM N by value and by giving it some value which will be never met by within this key figure we’d like to sort a second one to display the TOP N, something like this:
KF1   KF2
1      20
1      10
1     5
2      15
2       5
3      40
3      20
3      10
Has anyone ever come across a similar situation?
Many thanks in advance,
Inma

Thanks Thomas
Unfortunately, this solution did not work for me, cover flow still shows multiple instances of the same artwork for various groups of tracks from the same album.
The thing I don't understand is why sorting by the "sort album artist" field does not group all the tracks from an album together.
My specific example (I still can't get a screenshot posted):
I have two Gwen Stefani albums, both ripped from CD (not imported from the itunes store). both albums have a majority of track where Gwen is the only artist and two or three track with featured artists. I have filled the "album artist" and "sort album artist" tags to all read Gwen Stefani, however, if I sort by either of these columns (in cover flow mode), what I get is this:
all the tracks from one ablum where Gwen Stefani is the artist
then all the tracks from the other album where Gwen Stefani is the artist
then (in alphabetical order by featured artist) the remaining tracks from both albums - ie, the albums are mixed up
for each group of track I see an cover flow art work.
I should say that I have turned off the compilation tag on all of my albums because this ends up saving the file in a compilation folder, not in the artist folder on my hard drive - but it doesn't make a difference either way to the way I see the files sorted in itunes.
It's really frustrating!

Similar Messages

  • Sort data by key figure in Query Designer

    Hi Gurus,
    Is it possible to sort a query according to a key figure from Query designer?
    Thanks

    Using condition TOP N is the solution

  • Subtraction of two key figures normalized to result not working as expected

    Hello SAP Community!
    I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
    In order to explain the problem I am facing please analyze below text:
    1) Let's assume I have below data:
    LOAD MONTH  PLANT    MATERIAL HORIZON MONTH     FORECAST UNITS
    200805         PLANT-A  MAT-1            200805         510,235.00
    200805         PLANT-B  MAT-1           200805          74,240.00
    200805         PLANT-A  MAT-1           200806         438,721.00
    200805         PLANT-B  MAT-1           200806          74,240.00
    200805         PLANT-A  MAT-1           200807         356,981.00
    200805         PLANT-B  MAT-1           200807          74,240.00
    200806         PLANT-A  MAT-1           200805               0.00
    200806         PLANT-B  MAT-1           200805               0.00
    200806         PLANT-A  MAT-1           200806         510,235.00
    200806         PLANT-B  MAT-1           200806          74,240.00
    200806         PLANT-A  MAT-1           200807         438,721.00
    200806         PLANT-B  MAT-1           200807          74,240.00
    2) Then, assume I have a comparison report, restricted by load month for two months May and June 2008 (filter restricted by two month variables) with FORECAST units spread accross columns for whole horizon (two months also in this case).
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Comparison Units (June 2008) 510,235.00  438,721.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Comparison Units (June 2008)  74,240.00   74,240.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    3) Now, let's suppose we want to know the proportions (%) of Base vs Comparison units, so
    we normalize forecats to results an we get the below report:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    4) Finally, let's suppose we want to know the deltas (differences) of Base vs Comparison
    units, for both number of units and %. The report now look as below:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
                       Delta base vs. comp. units %  1.77%       2.74%
                       Delta base vs. comp. units    71,514.00  81,740.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
                       Delta base vs. comp. units %  -1.77%      -2.74%
                       Delta base vs. comp. units         0.00        0.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    5) PROBLEM:
    In my report, the "Delta base vs. comp. units %" is not working as expected and
    calculates number of units just as "Delta base vs. comp. units" does instead of calculating the % difference.
    So my report looks as follows:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
                       Delta base vs. comp. units %  71,514.00  81,740.00 <<<WRONG!!
                       Delta base vs. comp. units    71,514.00  81,740.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
                       Delta base vs. comp. units %       0.00        0.00
                       Delta base vs. comp. units         0.00        0.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    The formulas are:
    a) Delta base vs. comp. units %
      Delta base vs. comp. units % = Comparison Units % - Base Units %
    b) Delta base vs. comp. units
      Delta base vs. comp. units = Comparison Units - Base Units
    The KFs
    - Comparison Units %
    - Base Units %
    Are RESTRICTED key figures (restricted to Base and comparison month variables) which
    are setup as:
    1) Calculate Result As:  Summation of Rounded Values
    2) Calculate Single Value as: Normalization of result
    3) Calculate Along the Rows
    The KFs
    - Delta base vs. comp. units %
    - Delta base vs. comp. units
    are FORMULAS setup to:
    1) Calculate Result As:  Nothing defined
    2) Calculate Single Value as: Nothing defined
    3) Calculate Along the Rows: user default direction (grayed out)
    Thanks for the time taken to read in detail all of this. Long text but necessary to understand what the problem is.
    Any help is highly appreciated.
    Thank you.
    Mario

    Hi,
    The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
    I hope this will solve your issue.
    Regards,
    S P.

  • Two Key figures in Report Painter column?

    Dear Experts,
    We have some company codes with group currency setup and others without this. I have created a report painter report with table GLT0. I want ability to produce a consolidated report for all the company codes.
    However, when I define the report column, I can only select one basic key figure in the column viz. HSL - Local currency or KSL - Group currency for example. In my report I have selected HSL since majority of the company codes report on local currency.
    Is there a way that the program can be told to change the basic key figure during report execution to KSL - Grp Curr for select company codes only?
    Or is there a way to have two basic key figures in a report painter column? I know I sound foolish on this question. But still I ask this.
    Any thoughts, pls share with me. Thanks.
    Vishal Thakur

    You are right Sue. But unfortunately way back in the 90's when our company implemented SAP, those company codes did not activate the 2nd LC as USD. Thus, these companies only have figures updated in the 1st LC which is USD.
    Subsequently, we acquired new companies overseas and then for these co's we switched on the 2nd LC as USD with the 1st LC as the country specific currency.
    Vishal.

  • Help needed to compare two Key Figures and show out put

    hello experts,
                       I am comparing the Sales data for two year/month. I need to compare these two KF and show the result only if one is greater than the other by 40%. Sample
    Jan/2008                             Jan /2007
    400                                      600
    500                                      300
    300                                      700
    600                                      400 
    The columns should be outputted only if Jan 2008 is greater than Jan 2007 by 40% for all customers in a business area. Thank you all in advance.
    Regards,
    -Akash

    Hi Akash,
    Your requirement could be met by
    Creating a Calculated Key Figure say variance = ( ( Jan2008 - Jan2007 ) / Jan 2008 ) *100
    Then create a new Condition on  Variance so as to display rows only when Variance > 40
    Hope this solves ur issue.Do revert
    Vasavi

  • Can I split the contents of characteristic into two key figures?

    Hi experts
    I have a characteristic that represents a discount.  It is entered into SAP as Nnn or Pnn where N means negative and P means positive and the nn is a two-digit number. 
    Within my query, I need to be able to add this discount to another discount type (which IS conveniently entered as -nn.nnn!) and get "total discount".  If I can get the N/P and nn parts of the characteristic into separate key figures I'll be able to create my "total discount" formula.
    This would be so simple to do in code, but can I do it within the query?
    Thanks for any guidance
    Brigitte

    Ravi
    I already tried that but couldn't get it to work.  I thought the offset stuff would do the trick but it didn't work - I just got 0 instead of the two-digit number I was expecting.  (I put in offset start = 1, offset length = 2 to try to get the nn part of the characteristic.)  Also, I couldn't figure out how to get the N or P part of the characteristic as the formula variable dimension doesn't allow characters.
    If you can be more specific about what I should be doing, please reply and I will try what you advise.
    Thanks
    Brigitte

  • Table Interface: Melt two key figure vaules

    Hi,
    i want to combine the values from 2 different key figures by using table interface.
    Example:
    key figure 1        key figure 2
    222                 333
    What i need is a look like this:
    new keyfigure
    222 /
    333
    Anyone did something like this before?
    Regards,
    Adem

    Paste the below code between </BODY> and </HTML>.
    Here I have assumed the KF1 is 3rd column and KF2 is 4th column.
    Whatever appears in the bold you have to change it.
    <script type="text/javascript">
    var obj;
    var row;
    var x;
    var i;
    var td;
    // get the original table
    obj = getTableReference("<b>TABLE_1</b>");
    for (var rowno =0;rowno <= obj.rows.length;rowno++)
    obj.rows(rowno).cells(<b>3</b>).innerHTML = obj.rows(rowno).cells(<b>3</b>).innerHTML + "/"+ obj.rows(rowno).cells(<b>4</b>).innerHTML;
    obj.rows(rowno).cells(<b>4</b>).style.display = "none";
    function getTableReference( table_name ){
    var all_tables = document.all;
    for( var i=0;i<all_tables.length;i++ ){
    if (all_tables<i>.name==table_name)//we have found tbl
    return all_tables <i></i>;
    </script>
    When I paste the code (squarebracket i squarebracket) is going away as the browser recorgnises as an indication for italics.So please correct the "return all tables;" to "return all_tables square bracket i squarebracket".
    Regs
    Gopi
    Assign points if it helps...
    Message was edited by: Gopi
    Message was edited by: Gopi
    Message was edited by: Gopi

  • Substraction of two key figures normalized to results not working as expect

    Hi  All,
    I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
    Thanks & Regards,
    Venkat Vanarasi.

    Hi,
    The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
    I hope this will solve your issue.
    Regards,
    S P.

  • Sort Key Figure in a Query

    I have a situation where I have to use a query (not possible to use a view - long story, but limitations on views make it so)
    I have a simple query that has products on rows, and Month and Sales Value on the columns.
    I want to sort the Sales value descending.
    ie
    product   Sales Value/8.2005
    prod1      500
    prod2      400
    prod3      300
    How do I tell the query to sort on the Key figure value descending as shown above???
    I have managed to achieve this by putting a condition on that returns the top 100% of the query, however there must be a better way??? (although I am slowly losing confidence in SAP's thinking (or lack thereof))
    Thanks in advance for any assistance.
    Regards
    Richard

    Hi JKyle,
    Thanks for your response.
    I am aware that you could sort by using the Properties on the context menu of the key figure, but this is no good for a default view without hacking the URL, which becomes quite tedious. (My users are not capable of entering even the simplest of variables, let alone using a context menu to sort every time they run a report.
    You can also bookmark once it has been sorted, however have had problems with bookmarks disappearing in the past, and so I don't really consider this to be a solution either.
    I guess I thought that this was such a fundamental requirement that it would be included, and that I was missing some setting somewhere when developing the query.
    Thanks again for your response.

  • Can not Sorting by Key Figure with Analyzer and Excel 2007

    Hello experts,
    We have recently changed to Office 2007, and the funcionality of Sorting by a Key Figure with BEx Analyzer is desactivated.
    We have applied the patch 10 for BEx  BI 7.10.
    Has anybody had the same problem?
    Thanks in advanced.

    Hi Patricia,
    Have you got two structures in your query?
    Please take a look at the following notes:
    1378796 - Disabled Sorting when there is one struct. in the drilldown
    1332267 - BExAnalyzer: changes in cell properties dialog / sorting
    these should explain why the sort feature is no longer available in certain scenarios.
    many thanks
    Orla.

  • 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

  • Sort descending by a key figure?

    Hello,
    This question relates to our Top 10 Vendors query. The default version of the report sorts in ascending order for total invoice value. I can change this from the right click context menu to be in descending order, but I can not figure out how to make this the default setting. The properties in the query do not have an option to sort by this key figure in an ascending or descending fashion. Can anyone tell me how to sort by a key figure?
    Thanks very much,
    Bob

    You can make a descending sorting for your key figure using the condition TopPercent (Top%) and take the value 100. To sort ascending, use the BottomPercent (Bottom%) condition on your key figure.
    Then 100 % of the values of your key figure will be shown in a descending sorting by default in your query (without using a view).
    I used the feature in the newest BEx Query Designer (7.x) and it works fine, I don't know if it's available in the older version (3.x).
    Please assign points.
    Kind regards,
    Ben De Windt
    Belgium

  • 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 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.

  • 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..

Maybe you are looking for

  • Add layers from other psd file via action/batch (Or possibly script)

    Hi Brand new to this forum. Quick intro: Eivind from Norway, 32, Photographer, Nikon D300, CS5 I have tried to make a action where i open 2 files, duplicate the layers from file2 to file1 and it works fine. But running the action as a batch i get in

  • X font problem - libfreetype removed

    Whenever I try to start X or use "X -configure /etc/X11/xorg.conf" I receive an error message stating - "X: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory."  This most likely occurred

  • How to buy the official release?

    I installed on my Mac mini GM just for try. Now I want to buy an official release for use. But I have statement "installed" at the Lion 10.7 I tried to buy from my all 3 different MBP with SL 10.6.8 installed. The same situation at the app store. Wro

  • Blocking double payment

    Hi Experts, I need a query to block a double payment from happening or an approval procedure to alert the financial manager. The requirements are as follows: In the outgoing paymetns screen, I need to block the payment if the "Reference" field in the

  • Large number of objets - log miner scalability?

    We have been consolidating several departmental databases into one big RAC database. Moreover, in tests databases we are cloning test cells (for example, an application schema is getting cloned hundred of times so that our users may test independentl