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
mj1996
Frequent Visitor

Incorrect Auto-total of Measure

Hi all, I have a file that combined accrued numbers (from SQL) and verified numbers (entered manually into excel and linked). 

I created a measure that pulls the accrued total for a time period if the verified has not yet been entered: 

=if(Verified=0, calculate(sum(Accrued), Verified) 

The data appears correct in the table view but the auto total ignores the rows which are using the accrued value. 

E.g. 

Q1 Verified = 100
Q2 Verified = 100
Q3 No Verified, so pulls Accrued = 100 

Auto-total appears = 200 rather than 300. 

Is there a reason it wouldnt recognize the Q3's 100? 

Thanks in advance

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @mj1996 ,

 

We can try to create such a measure to meet your requirement.

 

measure =
SUMX ( 'Table', IF ( [Verified] = 0, [Accrued], [Verified] ) )

Incorrect-Auto-total-of-Measure-1.png

 

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you but this doesn't work due to the complicated nature of my tables. It's really disappointing that Power BI isn't smart enough to just add the values in the table. Tableau does it

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.