Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6333013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:22:50+00:00 2026-05-24T18:22:50+00:00

I have a ssrs report . There is a matrix with 2 row groups(from

  • 0

I have a ssrs report. There is a matrix with 2 row groups(from outer to inner): group – item, and 1 column group: year. I hope it’s fairly easy to understand. Please refer to below “image”.

Group         CAGR                  2010                        2011                                             

Group1        CAGR_group1     sum_group1_2010     sum_group1_2011
     Item1     CAGR_item1       sum_item1_2010       sum_item1_2011
     Item2     CAGR_item2       sum_item2_2010       sum_item2_2011

The sum_group1_2010 and sum_group1_2011 are sum of item1 and item2 for each year.
CAGR_item1 and CAGR_item2 are calculated by this fomular:

CAGR = (sum_item2_2011/sum_item2_2010)^(1/n) - 1 (n=2011-2010)

I created this function in code. It’s simple to calculate CAGR for each item. I used following expression: note First refer to 2010, and last refer to 2011 in this case.

Code.CAGR(First(Fields!Amount.Value).ToString, Last(Fields!Amount.Value).ToString, Last(Fields!year.Value).ToString - First(Fields!year.Value).ToString)

Now the problem is how can I calculate for the CAGR_group1? I intended to use

Code.CAGR(First(Sum(Fields!Amount.Value)).ToString, Last(Sum(Fields!Amount.Value)).ToString, Last(Fields!year.Value).ToString - First(Fields!year.Value).ToString).

Then SSRS reported can not use aggregate function in another aggregate function.

Hope it’s all clear. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:22:51+00:00Added an answer on May 24, 2026 at 6:22 pm

    I think the easiest way to do this would be to add the calculation to your SQL query: it could be a new column in your existing query, which calculates to the same value for every record(row). Then in your report just use the FIRST function.

    Alternately, this may work if you add appropriate scope statements to your aggregate functions, such as FIRST(SUM(Fields!Amount.Value, “ItemGroupName”) , “Group1GroupName”)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several parameters on an SSRS report. There are two groups of these
I have SSRS report with its own datasets coming straight from the database. I
My SSRS report fetches data from my DATAWAREHOUSE. The ASP.NET application I have is
I know nothing about SSRS I have an SSRS report with a column containing
This the scenario have. There's an SSRS server that has a report where the
I have an SSRS grid report with a header row that SUM() s select
I have a matrix report in SSRS 2005, and the rows have certain sections.
I have a simple table based report in SSRS 2008, There are 10 columns
I have a matrix in an SSRS 2008 report. The rows are grouped on
I have a report that shows all errors (if there are any) from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.