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
Anonymous
Not applicable

Matrix and Measures Help

All I need a little Help I have a case where I have two matrix and I want to get the difference between the two

Matrix A                                                     Matrix B

jktodd007_0-1646368086612.png      jktodd007_1-1646368114843.png

 

so the difference woul be 25000

I thought I would have to create a new measure in the source table that did the sum calcuations for me something like

CRD Qty = CALCULATE (
SUM ( 'Revenue-Tracker'[Qty] ),
FILTER ( ALL ( 'Revenue-Tracker'), 'Revenue-Tracker'[CRD] <= MAX ( 'Revenue-Tracker'[CRD] ) )
)
And 
FCD QTY = CALCULATE (
SUM ( 'Revenue-Tracker'[Qty] ),
FILTER ( ALL ( 'Revenue-Tracker'), 'Revenue-Tracker'[LastFCD]<= ( 'Revenue-Tracker'[LastFCD] ) )
)
The issuse I am having is when I do those two measures I don't get as the result  50000 and 75000.
I am not sure what formula I would use to basically do the math that the Matrix does.  Can any one help?   

jktodd007_2-1646368529713.png

I believe once I get those two measures correct it would just be a simple subtraction of the two measures.

Thank EVERY ONE in advance for taking a look!!

Jennifer

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , what is LastFCD and CRD are giving, if those are dates, they should join with commom date table and then you should measure use userelationship and then take a diff

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

 


Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

LastFCD and CRD are dates and they are just normal MM/DD/YYYY format dates throughout the year

jktodd007_0-1646611675036.pngjktodd007_1-1646611737655.png

Please let me know if this helps.

Thanks

Jennifer

 

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.