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
Wicak
Helper I
Helper I

Data Difference based on different column

Wicak_2-1663408174016.png

 

i connected the three tables using the material table. I want to get the result of the difference value of the three tables. any suggestions so that the DAX doesn't just use this method? Example Dax, sum ( Material A ) - sum ( Material B ). but, in this way only compare 2 tables

 

Thanks

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Wicak 

 

Is this the result you expected?

vzhangti_0-1663554685948.png

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @Wicak 

 

Is this the result you expected?

vzhangti_0-1663554685948.png

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tamerj1
Super User
Super User

@Wicak 

Would you please explain how did you reach to this result?

daXtreme
Solution Sage
Solution Sage

Why 3 tables when 1 is enough? Just create this table instead (it's called melting or unpivoting):

 

Material | SystemNo   | Value

A            | System1     | val1

B            | System2     | val2

...

 

I hope you get the gist. Power BI does not like to work with the tables you've got. It likes the table I showed you. Once you've got such a table, it'll be easy to do anything...

 

Having such a table you create a measure: [Total] = SUM( T[Value] ) and by slicing the table by Metarial/SystemNo, you can build from this base measure any measure you need.

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.