Sorting of Sum Totals at category & subcategory levels in Answers -Resubmit

I am resubmitting this as there with some alignment issues in the previous text. I am not able to get it in proper order here so have identified the category & sub category by bold & italics.
I have a requirement where i need to sort by $$ within a category and sub category, first i need to show the highest YTD $$ under the category with total & the sub categories also should be sort as given in the example, GM having the highest value is in top, in the same way AT&T having the highest value is at the top.
Category Sub Category YTD $$ by S
Automobile GM 12000
Toyota 10000
Honda 8000
Automobile Total 30000
Telecom AT&T 10000
Verizon 8000
Sprint 5000
Telecom Total 23000
I am able to achieve this if i do it at the Category level, and the sub category is sorted in alphabetical order and not by YTD $$ and the moment i add the sorting to the Sub category, it shows category & the sub category totals as individual line items instead of single category & multiple sub-categories .
Thanks again for your time & help!!

Thanks for the response, i can only select a value from the dimension if i select Sort Order, but the YTD value is from the fact. Let me try to show the requirement here again as in the last mail somehow the format was not correct. The text in bold refers to the Category & the text in italics refers to the sub category.
Category Sub Category YTD $$ by S
Automobile GM 12000
Toyota 10000
Honda 8000
Automobile Total 30000
Telecom AT&T 10000
Verizon 8000
Sprint 5000
Telecom Total 23000
The category with the largest total should be at the top and within the category, the sub category with the max $$ should be at the top.

Similar Messages

  • Sorting of Sum Totals at category & sub category levels in Answers

    I have a requirement where i need to sort by $$ within a category and sub category, first i need to show the highest YTD $$ under the category with total & the sub categories also should be sort as given in the example, GM having the highest value is in top, in the same way AT&T having the highest value is at the top.
    Category Sub Category YTD $$ by S
    Automobile GM 12000
    Toyota 10000
    Honda 8000
    Automobile Total 30000
    Telecom AT&T 10000
    Verizon 8000
    Sprint 5000
    Telecom Total 23000
    I am able to achieve this if i do it at the Category level, and the sub category is sorted in alphabetical order and not by YTD $$ and the moment i add the sorting to the Sub category, it shows category & the sub category totals as individual line items instead of single category & multiple sub-categories .
    Thanks again for your time & help!!

    Thanks for the response, i can only select a value from the dimension if i select Sort Order, but the YTD value is from the fact. Let me try to show the requirement here again as in the last mail somehow the format was not correct. The text in bold refers to the Category & the text in italics refers to the sub category.
    Category Sub Category YTD $$ by S
    Automobile GM 12000
    Toyota 10000
    Honda 8000
    Automobile Total 30000
    Telecom AT&T 10000
    Verizon 8000
    Sprint 5000
    Telecom Total 23000
    The category with the largest total should be at the top and within the category, the sub category with the max $$ should be at the top.

  • Sort by sum total

    Hello,
    I need help on the following:
    A  table (generated from XML) contains the following:
    Customer \ Sales Order Number \ Sales Order Line \ Ext Price
    For example:
    A Customer \ 5000 \ 1 \ 250
    A Customer \ 5000 \ 2 \ 300
    B Customer \ 5001 \ 1 \ 200
    B Customer \ 5001 \ 2 \ 50
    My problem:
    However, I need to show it descending by the total of ext price for each order:
    A Customer \ 5000\ 550
    B Customer \ 5001 \ 250
    Problem is, I group by Order Num, then sum the Ext Price to get the total for each order.  However, because the Order Num is grouped first, how do I then tell Crystal to actaully sort overall in descending value by the sum of the ext price?
    Any help is most welcome.

    Hi Michael,
    Try selecting Report for the menu bar and then select Group Sort Expert.  You should then see any groups you have.  Select Order number group and then under "For this group sort" select "All" and then under 'based on" select sum of Ext. Price.  You can then click Descending.
    Hope that helps,
    -Cyndi

  • SSRS 2008 R2 Report - Sum Totals of a Filtered Group

    I'm at a loss here, so any help will me much appreciated. I will do my best to explain, but if you need additional information, please let me know:
    I have a very large dataset of patient data. Specifically for the numbers I need, I have a patient number field, a county field, a 1 or 0 for LastYear field, and a 1 or 0 for CurrentYear field.
    Example:
    PtNo    County  PY  CY
    45676  Scott     0    1
    45322  Cape     1     0
    47686  North     0     1
    The thing I am shooting for on my report is, "Volume growth in 3 counties (+20 cases)."
    I created a group and grouped by County (group name County) and I included a group filter to only include "total cases of CY" are greater than "total cases of PY" to narrow my data to only counties that had a higher current year sum
    than previous year sum.
    Example:
    County  PY    CY  Difference
    Scott    141  143     2
    Cape     90    98      8
    North    78     88    10 
    All is working well, except I don't need to see the Counties themselves, I just need the 3 counties and a difference of 20. 
    I explored online and found tutorials that said to right click on the field and select "Add Total" but this total did not have my filter in it and gave me everyone. I also tried adding a row outside the group and used the RunningValue function
    (i.e. RunningValue(Fields!FYTD_Current_Year.Value, Sum, "County"))  but it gave me a message that states "The Value expression for the text box 'Textbox456' has a scope parameter that is not valid for an aggregate function. The scope
    parameter must be set to a string constant that is equal to either the name of a containing data region or the name of a dataset."
    When I move the row with the RunningValue function inside the group, it runs but I get the same information repeated twice for each county with no final total.
    So I am not sure how to go about getting my values I need for my report. Anybody know how to resolve this?
    Thanks,
    Cyndi
    cpemtp1

    Hi Cyndi,
    Based on my understanding, you specify a filter condition in group properties. Then you want to sum the filtered values for each field.
    In this scenario, we need to specify a filter condition on group level. If we use sum() function out of group, the expression will calculate the total values on dataset level instead of group level. So we can’t simply use expression to achieve this goal.
    However, we can use custom code to record the filtered values for each field, then we can calculate the total based on these values. Please refer to the steps and screenshots below:
    1. Add the custom code below into the report:
    Public Shared Value1 as Integer=0
    Public Shared Function GetValue1(Item as Integer) as Integer
    value1= value1 + Item
    return Item
    End Function
    Public Shared Function GetTotal1()
    return value1
    End Function
    Public Shared Value2 as Integer=0
    Public Shared Function GetValue2(Item as Integer) as Integer
    value2= value2 + Item
    return Item
    End Function
    Public Shared Function GetTotal2()
    return value2
    End Function
    2. Design the tablix like below:
    3. The result looks like below:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Display the totals only at Material level in ALV

    Hi........,
    I am calculating the subtotals and totals. I am having the columns Company Code , Plant and Material etc.
    First I did sort on table as :
    gr_sorts = gr_table->get_sorts( ).
      gr_sorts->add_sort( columnname = 'C_CODE' subtotal = abap_true ).
      gr_sorts->add_sort( columnname = 'WERKS-WERKS' subtotal = abap_true ).
      gr_sorts->add_sort( columnname = 'MATNR' subtotal = abap_true ).
    After that I am doing the aggregation like this :
    gr_agg = gr_table->get_aggregations( ).
      gr_agg->add_aggregation( 'QUANTITY' ).
      gr_agg->add_aggregation( 'QUANTITY1' ).
      gr_agg->add_aggregation( 'DELTA' ).
    It is displaying the totals and subtotals at each Company code , Plant and Material level.
    But I want to display the totals only at Material level.
    Guide me on the same.
    Reply me as early as possible.
    Thanx,
    Jay
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 11:08 AM

    Replace your code for sorting
    gr_sorts = gr_table->get_sorts( ).
    gr_sorts->add_sort( columnname = 'C_CODE' subtotal = abap_true ).
    gr_sorts->add_sort( columnname = 'WERKS-WERKS' subtotal = abap_true ).
    gr_sorts->add_sort( columnname = 'MATNR' subtotal = abap_true ).
    with the code given below.
    gr_sorts = gr_table->get_sorts( ).
    gr_sorts->add_sort( columnname = 'C_CODE' subtotal = abap_false ).
    gr_sorts->add_sort( columnname = 'WERKS-WERKS' subtotal = abap_false ).
    gr_sorts->add_sort( columnname = 'MATNR' subtotal = abap_true ).
    Hope this helps. Reward points if helpful.
    Thanks,
    Balaji

  • Sum total of categories

    I am trying to take the sum total of each category in my checking account and create a chart of percentages.
    Is there an easy way to this. I am trying to do what they did on the checking account template in numbers.
    Thanks

    Hi Jonathan,
    While Yvan is correct in what he says, he, and Badunit in the post linked by Yvan, are talking about using the sums reported in a Category row in further calculations or as drivers for a chart/graph.
    Obviously, it is possible to create a pie chart from sums of each category in a checking register, as the supplied template does exactly that.
    Clicking on the chart in that template will show the cells supplying the data to the pie chart.
    Clicking on the cell supplying the total for the Home category will show (in the Formula bar) the formula that calculates the category total:
    =SUMIF(Transactions :: $D,A2,Transactions :: E)
    SUMIF is the key here. It reads the category of each transaction from column D of the Transaction table, and it that matches the category is A2 of its own table, it includes the amount in column E in the total for that category.
    You can find out more about SUMIF (and about the other functions used in the Checking Register and other templates) in the iWork Formulas and Functions User Guide. You can get the Guide, and the Numbers '09 User Guide, through the Help menu in Numbers.
    Regards,
    Barry

  • Sum total bug

    I have a bug in 4.1.41 with Sum Total at the right...
    Each cell in my display is a simple calc like SUM(Hits). This is then Sum totaled as a Grand total at
    the right. Everything works fine in this case.
    Now if I replace my simple calc with a more complex calc into the same calculation: DECODE(SIGN(NVL(SUM(Hits),0)-NVL(SUM(DECODE(Category,'Audio',Hits,'TV and Music',Hits,0)),0)+NVL(SUM(DECODE(Page,'Digital Music',Hits,'Listen to Music',Hits,0)),0)),1,0,1)...the Grand total at the right works fine the first time...until I save the sheet and exit...and then get back into Discoverer.
    When I get back into Discoverer...my Grand total at the right displays as all blanks. It simply refuses to display like it did the first time when I defined it. In order to get around this bug, I have to makeup a new simple calc, and then redefine it by putting my more complex definition into it.
    This gets old and is tedious. Anybody know what is going on?

    I have a bug in 4.1.41 with Sum Total at the right...
    Each cell in my display is a simple calc like SUM(Hits). This is then Sum totaled as a Grand total at
    the right. Everything works fine in this case.
    Now if I replace my simple calc with a more complex calc into the same calculation: DECODE(SIGN(NVL(SUM(Hits),0)-NVL(SUM(DECODE(Category,'Audio',Hits,'TV and Music',Hits,0)),0)+NVL(SUM(DECODE(Page,'Digital Music',Hits,'Listen to Music',Hits,0)),0)),1,0,1)...the Grand total at the right works fine the first time...until I save the sheet and exit...and then get back into Discoverer.
    When I get back into Discoverer...my Grand total at the right displays as all blanks. It simply refuses to display like it did the first time when I defined it. In order to get around this bug, I have to makeup a new simple calc, and then redefine it by putting my more complex definition into it.
    This gets old and is tedious. Anybody know what is going on?

  • Sum up value at query level

    I want to sum up value at query level ]
    at cube level
    Material Year Period Qty
    A 001.2007 100
    B 001.2007 200
    A 001.2007 300
    C 002.2007 400
    at query, I want to show it in this way. How to do that in query? I don't want to make any change in cube.
    Material Year Period Qty
    A 001.2007 400
    B 001.2007 200
    C 002.2007 400
    Thanks.

    Hi,
    You don't need to change cube. Just add year, period and material to row and qty to column.  For period, select 'total' option.
    Viswa

  • Stopping Sum Total completed activity popup

    1st time posting and new user of Adobe Captivate 5. Hoping to find some help.
    Here is my scenario.
    I have a Power Point presentation that I have brought into captivate 5.
    The steps I need to accomplish are
    1) Disable the SumTotal player (done through edit of Manifest.xml file.
    2 Have user page through all slides to end.
    3) Captivate send a completion to LMS
    Here is my problem.  As soon as user enters last slide Sum total pops up the "You have completed the activity. Click OK to close the player." button right in the middle of the slide forcing the user to move it to finish reading the slide and then they would need to click OK to close thus generating a completion status in the LMS.
    My publish settings are
    Quiz enabled
    LMS standard SCORM Template default (have also tried the Captivate 4 template i found)
    Manifest version 1.2
    Mastery Score 100
    Reporting Status Complete/Incomplete
    Report to LMS Percent
    Chose Report Data Slide Views Only Slide Completion 100
    Reporting Level Report Score
    LMS Customerization Settings
    Never Send Resume Data checked.
    I really just need the Sum Total box to appear after the last slide or at least set it so that I can control a set time that it appears.
    Thanks

    Whenever I hear someone having issues getting an LMS to work with Complete/Incomplete, suggest they try using Pass/Fail instead.  Call me cynical, but I've seen so many people have problems with getting it to work reliably that I've grown to be very distrustful of Complete/Incomplete as a solution for LMS tracking.
    Also, try testing what happens if you add a scored button on that last slide which the user must click to indicate they've completed the module.  See if adding such an interactive object to the last slide will delay the appearance of that nuisance Sum Total dialog.
    I wish I could get hold of a trial or developer setup for Sum Total and run it on my development machine.  Too many people report issues with getting Captivate to work reliably in Sum Total, yet Captivate content seems to work fine for most other LMSs.  I find this intriguing.

  • Sum, total, or count true false data vs using the insert summary

    Please, does someone have specific knowledge on how to count total instances of true or false data vs using the insert summary?
    We have data such as:
         Name          Formula1        Formula2
    Detail level     Bob Barker          True          False
    Detail level     Bob Barker          False          True
    Detail level     Bob Barker          True          False
    Detail level     Bob Barker          True          False
    Group level                    (value)          (value)
    Detail level     Drew Carey          True          True
    Detail level     Drew Carey          False          True     
    Detail level     Drew Carey          False          False
    Group level                    (value)          (value)
    I would like to group by person and run a total in the group level but count only the true data, not every instance.  The insert summary wants to sum all instances formula1 or formula2 whether they are true or false, so Bob Barker will have a value of 4 for formula1 and a value of 4 for formula2 if the insert summary is used.  Our goal is to show Bob having a value of 3 for formula1 and a value of 1 for formula2, only counting the true instances.
    I was unsucessful using the insert summary, running totals, and my  if, then, else formula statements. 
    Any ideas or suggestions?

    Instead of using true/false (which is actually returning a 1 or a 0), try using a formula like this...
    IF {TableName.FieldName} = true condition THEN 1
    Notice there is no ELSE condition, which means that if the formula evaluates to false the result will be a null value. Null values are not included in counts.
    HTH,
    Jason

  • Category, SubCategory, and Classification OO design

    Hi guys,
    I am really stuck in designing the OO way for product category, subcategory and classification stuff like that. I need something like this:
    http://list.auctions.shopping.yahoo.com/sg/0-submit.html
    Can somebody recommend the best way to design OO like that? This is because some category may have 5 level down to it subcategory but some don't. Appreciate some comment given here. Thanks !
    regards,
    Mark

    Thanks a lot man....i found a book called Head First
    Design Pattern and there's a Composite Pattern inside
    ! But is it recommended to use composite pattern in
    Hibernate ?Not sure that I understand your question.
    If you're asking if there will be any difficulty in mapping the OO model to database tables via Hibernate, this is precisely one of the issues that Hibernate aims at solving.

  • Upload to Sum Total LMS Playing Wrong Audio

    I recently completed a course in Captivate 4 with audio narration and 1 video.  Everything worked great until I uploaded to Sum Total LMS.  When the course initially launched you hear the audio from the first slide and the audio from the video playing at the same time.  If you close the course and restart it, it plays fine.
    I have removed the course from the LMS and reposted it twice and am still haveing the same issue, can anyone help me out?

    It may be due to the way your video has been added inside the SWF in Flash.
    Was the video created as a symbol, and therefore is not at the main timeline level?
    If so, it might be that Captivate is playing the video and it's audio when as soon as it loads the file, instead of on the slide where the video is intended to play.
    How many slides are there in this project and on  what slide is the video SWF?

  • Sorting on a total column or calculated column in a pivot table

    We have a pivot table showing customer activity by month. We have added a calculated field to show the YTD average instead of a total column. Is there a way to sort on this calculated field? We have applied a sort on the measure in the criteria, and our resulting pivot table sorts by the values in the most recent month, not by the YTD average.

    I think we cant sort when we use a pivot view becoz all the rows are already fixed. Say your rows are sales and volume and columns are year 2007 and 2008, imagine if you r given the sorting ability then if number of units solds is more then it need to change the rows (but in pivot table rows are fixed). So, we cant sort in pivot tables!!

  • Adding Sum Totals from Multiple Tables in A single Document

    Hello All,
    I'm having trouble adding sum totals from multiple tables I've created in a Pages 09 doc. I putting together a spreadsheet for cost projections for a house remodel. I created tables for each room of the house. At the bottom of the document I'd like to have another table that takes the totals from each individual room and adds them up. Problem appears to be that each table has the same x/y axis labels so row and column numbers/letters are repeated so the final table can't quantify thing correctly.
    Any easy solutions? I can't find anything that's helped in my search efforts.
    Thanks,
    Josefis

    Jerry,
    Thanks for the feedback. I thought that might be the case. And you were correct to assume I was more comfortable in Pages. I'm halfway through converting everything to numbers. In the end it will work great too. Just some different formatting/design choices to be made as numbers doesn't appear to be as versatile in the same way pages is with design. So far it looks pretty good though.
    Thanks again,
    Josefis

  • Need a formula to calulate multiple cells and add the sum total to a cell in a other table

    Im a chef and my monthly inventory is a time consuming task. I get invoices from multiple suppliers on each day of the week. I enter them into a spread sheet and then need to add the sum total for all the invoices for say MONDAY. That total needs to be entered into a cell in another table  called "daily spend". Is there a formula to automatically add say all the invoices from monday and input the daily spend cell on that table. Here is an example
    I created a column B-to give each day a number(sometimes multiple invoices come from the same supplier for each day)<GREEN>..If there was a way to do this differently...Im happy to change the layout of the spreadsheet.  I want to add the total $ (column F)  for each day together(all the blue fields) and then insert the total into another cell seen in the next  table .  So in this example its F4+F16+F17=?, ? inserted into N2 of the next table
    Thanks so much

    "I ve finally has a play with the advice you gave me but I have realized that the formula you gave me is for a week....and like I mentioned in my reply to you, one table is weekly the other is monthly....is there a way to overcome this? (my answer to you explains it)"
    Hi Gavin,
    Unfortunately, the scale of your illustrations in that reply made them difficult (or impossible) to read, even on the Retina screen.
    The first formula, used to fill column B, extracts the Weekday number for each date. Since these numbers should be equivalent to the day of the month, You'll need to replace this with a formula that returns the Day value of each date:
    Old:
    B2: =WEEKDAY(A,2)
    New:
    B2: =DAY(A)
    Fill down to end of column.
    Because of the arrangeent of your Data table, you will need to repeat this formula in column H (with references to column G), etc. for each set of dates in the table.
    The SUMIF formula in column F is fine as is, except that it assumes all condition data will be in column B of Data, and all data to be summed will be in column F of Data. Since this is obviously not the case for your Data table, you will need a separate iteration of the formula for each week in the table, with the four SUMIF statements enclosed in a SUM statement:
    E2: =SUM(SUMIF(Data :: $B,A2,Data :: $F),SUMIF(Data :: $H,A2,Data :: $L),SUMIF(Data :: $N,A2,Data :: $R),SUMIF(Data :: $T,A2,Data :: $X))
    Fill down for as many rows as there are days in the month being summarized.
    Column references in the formula assume that six columns are used for each week, and that there is no gap in the table between weeks.
    Note that the formula does not distinguish between transactions on July 7 and those on June 7 or August 7. Because of this, the Data table must be limited to transactions in a single calendar month.
    Regards,
    Barry

Maybe you are looking for

  • Lost data after upgrade to Lion

    Hi. I recently upgraded to Lion on my Macbook Pro and after a crash, my data was lost. The documents and downloads folders were empty. Fortunately I have a PC backup of the data and when I tried to restore the music to Itunes I was getting error mess

  • Can't Get Back to My Mac

    I have tried without success to get Back to My Mac working since downgrading from MobileMe to iCloud.  It can find some of the Macs on my network but not others, and it's never the same ones that get found or not found from one day to the next.  In a

  • How to send notification to email through report programme?

    I am do not have idea how to do it please help me.

  • Anyone got a copy of Weblogic 10.0 MP2 - 64 bit?

    I'm doing a new (ha ha!) install of OU CC&B 2.3.1 on Linux x86-64. The package is dated Jan 3 of this year. The install doc calls for Weblogic server 10.0 MP2 - 64 bit. The Oracle edelivery pages no longer offer anything but 32 bit in the "Older vers

  • Mpeg dvd playing problem

    I have just had some camcorder video tranferred to dvd by a professional company. When I try to play the dvd's my iMac doesn't recognise the dvd even exists. The presence of the dvd does.'t show up in Finder so I can't drag it in to such a program as