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