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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mwen90
Helper III
Helper III

One row in a measure table not calculating

Hi, 

 

I've been going nuts with different HasOneValue and SumX equations to get the measures in my table to show correctly on all rows. 

 

My equation / Measure:

IF(SUM('Table'[Scheduled]) = 0[Measure 12]IF(SUM('Table'[Measure]) =0SUM('Table'[Scheduled]), IF(SUM('Table'[Column 3]) >= 1[Measure 21] + [Measure 12],if(SUM('Table'[Scheduled]) > [Measure 12]*.8,SUM('Table'[Scheduled]), [Measure 12]))))
 
The number underlined in the table is the only item which is wrong. It is 1839 in total, it should be 2071. The Blanks should be missing as well. 
 
Please note: I am doing a SUMX on the equation above. If I put 'Level' first, the table doesn't calculate. 
Measure 24 = SUMX(SUMMARIZE('Table','Table'[Element]'Table'[Building]'Table'[Level]), [Measure 23])
 
mwen90_0-1661768203146.png

 

 
 
Thanks so much for the help!
4 REPLIES 4
mwen90
Helper III
Helper III

@amitchandak  Wondering if you've been able to get it to calculate? I still can't get the matrix to total correctly.

mwen90
Helper III
Helper III

Hey @amitchandak 

 

Please find attached the sample data.

 

Please note it is Table and measure 23 is the equation. Measure 24 is the one which is not calcuating. 

 

Totals should be 2071 for Sub - Acute building. This is the only one which isn't loading. 

 

Thank you so much!

 

Link to sample: Link

 

Cheers,

amitchandak
Super User
Super User

@mwen90 , I am assuming measure 23 is first to measure you have shown, Make sore all rows column of Matrix are included in summarize

 

Try like

Measure 24 = SUMX(Addcolumns( SUMMARIZE('Table','Table'[Element], 'Table'[Building], 'Table'[Level]), "_1",[Measure 23]), [_1])

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hey,

 

Yeah Measure 23 = If statements. I tried your measure but it didnt work unfortuatnely, 

 

What do you mean 'Make sore all rows column of Matrix are included in summarize'? 

 

I'll see if this explination helps, otherwise I'll prepare some sample data.

 

Thank you for the help!

Helpful resources

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

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.