Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I have some data that looks something like so:
| Prior Year | `Sales | 300 | FY20 |
| Fee Revenue | Sales | 100 | FY20 |
I want to be able to show in a matrix the growth percentage for each row level, with the "Prior Year" amount as the basis. So, for this example, id see
| Prior Year | 300 | 1.00 |
| Fee Revenue | 100 | .33 |
I created a measure for Prior year using CALCULATE(SUM(Value), FY = "Prior Year") but then that only shows up for rows where the line ite is "prior year".
Is there a best practice way to do this? I know the data is uncoventional, should i perhaps try deriving a date column?
Thanks!
Solved! Go to Solution.
Hi, @Anonymous
According to your description, I can understand clearly what you want to get, you want to create a Matrix to show in a matrix the growth percentage for each row-level, right? I think you can try my steps:
This is my test data based on your sample data:
growth percentage =
var _lastrow=
CALCULATE(MAX('Table'[Amount]),FILTER(ALL('Table'),[Index]=MAX([Index])-1))
return
IF(_lastrow=BLANK(),
DIVIDE(MAX([Amount]),MAX([Amount])),
DIVIDE(MAX([Amount]),_lastrow
))
And you can get what you want.
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result so that we can help you in advance.
How to Get Your Question Answered Quickly
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
According to your description, I can understand clearly what you want to get, you want to create a Matrix to show in a matrix the growth percentage for each row-level, right? I think you can try my steps:
This is my test data based on your sample data:
growth percentage =
var _lastrow=
CALCULATE(MAX('Table'[Amount]),FILTER(ALL('Table'),[Index]=MAX([Index])-1))
return
IF(_lastrow=BLANK(),
DIVIDE(MAX([Amount]),MAX([Amount])),
DIVIDE(MAX([Amount]),_lastrow
))
And you can get what you want.
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result so that we can help you in advance.
How to Get Your Question Answered Quickly
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |