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
jimena_santiago
Regular Visitor

How can I calculate the difference between to rows in a matrix?

Hello everyone! Hoping everything is going well!

 

I've been a long time trying to figure out how to find the difference between two rows in a matrix. What I want is to compare two values in different periods of time. For example if for DH-1 in May I have 7.3% and in June 6.6%, I would like to calculate (7.3%-6.6% = 0.7%).

Here it is the link to my power bi file:

https://www.dropbox.com/scl/fi/r9x3o82u0nalu8mkv1cr3/Difference-between-two-rows-matrix.pbix?rlkey=g... 

 

jimena_santiago_0-1689893526397.png

Thank you very much!!

2 REPLIES 2
jimena_santiago
Regular Visitor

Hello @lbendlin!

 

Thank you very much for your reply and feedback!

 

What I would like to do in this dashboard is to compare two different dates, for example may vs june or 1-7 june vs 1-7 july. That's why I thought about the two date slicers and the two matrix, do you thinks there's another way I can design it?

 

On the other hand, If there is only one matrix like in page (Pruebas (2) in the link) is it possible to create a meassure which calculates the difference between two months?

 

https://www.dropbox.com/scl/fi/r9x3o82u0nalu8mkv1cr3/Difference-between-two-rows-matrix.pbix?rlkey=g...

 

Thank you again for your support!!

lbendlin
Super User
Super User

find the difference between two rows in a matrix. 

That's not what you present in your sample file. 

 

lbendlin_0-1690149431400.png

You have two separate matrix visuals and you have modified the "Edit interactions" for the date slicers. You may want to rethink your design choices here, as it will likely be impossible for a measure to read the current value of the filtered date range.  (interesting question how that is governeded by the Edit Interactions - will need to investigate.)

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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