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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
ITManuel
Responsive Resident
Responsive Resident

SUM of measure not matching in Matrix

Hi there,

 

I have working hours informations in two different tables which are connected to each other. The greater values are the correct ones, I made an IF DAX command to take out the greater sum values of the 2 tables and visulize it in a Matrix. 

HOURS1= SUM(RX_Export_All[DURATION])*24   "*24 because of the format of the values in table 1, converting it in hours)

HOURS2= HOURS2 = SUM(Intelmec[DURATION])

HOURS=  if(SUM(RX_Export_All[DURATION])*24>SUM(Intelmec[DURATION]);SUM(RX_Export_All[DURATION])*24;SUM(Intelmec[DURATION]))

 

Matrix.png

The measure for HOURS is extracting correctly the data, however the sum of that measure showed in the Matrix is not taking into consideration the sum of the single values.

 

The sum should be 9.935,25 instead 9.466,75.

 

Thanks in advance

1 REPLY 1
Anonymous
Not applicable

If the calculation is correct on the project level, then you have to iterate through visible projects and sum up their values.

SUMX(
Projects,
<your measure here>
)

If the calculation should be performed on a different level than "project", then you have to iterate this very level.

Hope this helps.

Best
D

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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