Percentage change column in Matrix tablix

Mark Palmberg 1 Reputation point
2020-09-18T02:59:49.947+00:00

I'm using SQL Server 2016 Report Builder.

I have a very simple matrix that displays sum of revenue for my metrics by fiscal year. The dataset is a stored procedure that only returns data for two fiscal years, based on an input date parameter. Here's what my matrix looks like:

25714-matrix.png

I'd like to have a column outside to the right of the FiscalYearName column that would hold an expression that returns the percentage change in revenue between the first and last fiscal year values. Like so:

25753-matrix-ex.png

Thanks for any recommendations you have!

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,860 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Joyzhao-MSFT 15,571 Reputation points
    2020-09-18T03:41:50.487+00:00

    Hi @Mark Palmberg .
    How many years are there in your dataset ?
    I may be not easy to calculate the percentage directly use RevenueAmount field in SSRS .
    I would suggest to aggregate first in SQL with sql query. Calculate first in SQL , the year summary column. Then we could use the result directly in SSRS.
    You could provide us some dummy test data if you find difficulty with SQL query.
    Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Joyzhao-MSFT 15,571 Reputation points
    2020-09-25T10:02:03.133+00:00

    If you have any question, please feel free to let me know.

    0 comments No comments