locked
SSRS Report Group Total RRS feed

  • Question

  • I am trying to make a report in SSRS with Data source CUBE. I have a column which is calculated and inside the group. I could not take group total for that item. Please any guide my calculated column expression is

    =(Fields!Count_of_Passengers.Value/Sum(Fields!Count_of_Passengers.Value,

    "LHSH"))*100

     

    Tuesday, September 7, 2010 10:08 AM

Answers

  • Just give a try to this expression

    =(Sum(Fields!Count_of_Passengers.Value)/Sum(Fields!Count_of_Passengers.Value,"LHSH"))*100

    Hope its helpful....


    Pavan Kokkula Infosys Technologies Limited.
    • Proposed as answer by Jason Tom Thomas Tuesday, September 7, 2010 1:24 PM
    • Marked as answer by goldenagent Thursday, September 9, 2010 12:15 PM
    Tuesday, September 7, 2010 11:53 AM

All replies

  • Hi Use like the following =Sum(Fields!Count_of_Passengers.Value/Sum(Fields!Count_of_Passengers.Value, "LHSH"))*100),"YourGroupName")
    Tuesday, September 7, 2010 10:19 AM
  • Thanks for reply.

    The following error occured when i am trying your solution.

    'Aggregate functions cannot be nested inside other aggregate functions'

    Tuesday, September 7, 2010 11:24 AM
  • try adding the same expession in a seperate field in the datasets tab.

    ex:

    create a new field 'group total '

    group total expression =(Fields!Count_of_Passengers.Value/Sum(Fields!Count_of_Passengers.Value,

     

    "LHSH"))*100

    and wherever u want try placing the group total field.

    Tuesday, September 7, 2010 11:37 AM
  • Just give a try to this expression

    =(Sum(Fields!Count_of_Passengers.Value)/Sum(Fields!Count_of_Passengers.Value,"LHSH"))*100

    Hope its helpful....


    Pavan Kokkula Infosys Technologies Limited.
    • Proposed as answer by Jason Tom Thomas Tuesday, September 7, 2010 1:24 PM
    • Marked as answer by goldenagent Thursday, September 9, 2010 12:15 PM
    Tuesday, September 7, 2010 11:53 AM
  • Thanks, its great. It solved my problem.
    Tuesday, September 7, 2010 1:16 PM
  • Hi goldenagent,

    If the reply helped you, could you please mark it as answer? then other communities will get the direction when encounter the same issue. This is also a little reward to the forum supporter. Thanks.

    Regards,

    Challen Fu

    • Marked as answer by goldenagent Thursday, September 9, 2010 12:15 PM
    • Unmarked as answer by goldenagent Thursday, September 9, 2010 12:15 PM
    Thursday, September 9, 2010 10:53 AM