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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
troubledlady
New Member

How to calculate difference column between two columns from different data source in Matrix table?

Hi everyone, 

 

I read the similar post : 

https://community.powerbi.com/t5/Desktop/Difference-between-two-columns-or-rows/td-p/188185

 

However, I tried applying the suggested DAX in my Power BI for the similar issue but it turned out to not be working. Because I am using two different datasets in the Model view. It means I have two different files - 2023 Projection and 2022 Expenditure. How do I calculate the difference per unit between both. 

 

Thank you for your help!

 

Unit2023 Projection2022 Expenditure
Finance $        20,000.00 $           10,000.00
Human Resource $     400,000.00 $         350,000.00
Marketing Communication $     500,000.00 $         850,000.00
Programme $          2,000.00 $           30,000.00
Engagement $             500.00 $                500.00
4 REPLIES 4
troubledlady
New Member

There are two catergories -  Account and Department. I want to calculate a difference per Account catergory between Spent and Projection. Please advise.  

 

troubledlady_0-1675855934886.png

 

hi @troubledlady 

your sample dataset is not sufficient to reflect the challenge, please consider enrich it. 

This is sample dataset. I can't show everything from my orginial dataset which contains very sensitive info. 

Arul
Super User
Super User

@troubledlady ,

Can you share the screenshot of your data modelling and the relationship details?

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors