Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ChrisIrvin
Frequent Visitor

% Change over user selected year columns

Hi all,

 

First time poster! I'd appreciate any help you can give me with this question...

 

I need to create a dynamic matrix and line chart that shows the percentage change over selected year columns. Example below.

 

There are 10 years in the report and a user can select any combination of years. The selected years need not be contiguous, but are displayed in order (L to R). If a user adds more years, the table recalculates to reflect all possible % changes. If only 1 year is selected you'd see a blank table/chart. I think this means that a date table may not be appropriate as I want the calculation to work over non-contiguous years.

 

The result I'm looking for is exactly the same as if you used a pivot table to show % Difference From (previous).

 

So from this:

 

Category202020222023
A405379338089411576
B263250229064279059
C198641103715044
D9030743171125443
E305931760029115
Grand Total809393638961860237

 

I want this:

 

Category202020222023
A -17%22%
B -13%22%
C -44%36%
D -52%191%
E -42%65%
Grand Total -21%35%

 

And this:

 

ChrisIrvin_0-1701821808500.png

 

Happy to provide more info.

 

Many thanks!

 

Chris.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ChrisIrvin ,

You need two separate date tables.

vcgaomsft_1-1702023612193.png
Please check the pbix file.

vcgaomsft_0-1702023543988.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @ChrisIrvin ,

You need two separate date tables.

vcgaomsft_1-1702023612193.png
Please check the pbix file.

vcgaomsft_0-1702023543988.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

PijushRoy
Super User
Super User

Hi @ChrisIrvin 

Please implement Field Parameter Ref - https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

Find the sample PBIX file, use a similar solution 
https://drive.google.com/file/d/1UrOLacIjQhYo1wq0On_VeWP7zFAaTp7A/view?usp=sharing

 

PijushRoy_0-1701836731219.png

PijushRoy_1-1701836821307.png


If solved your requirement, please mark this answer as SOLUTION.
If this comment helps you, appreciate your KUDOS


Thanks
Pijush

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.