cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Meena Member
Member

Need urgent help, Incorrect measure totals

Hi community,

 

I have been struggling with this for a while, hope someone can help me out..

Following is the snapshot of my measure totals that are incorrect(higlighted in yellow):total.PNG

I tried a workaround using hasonefilter & Allexcept on one of the incorrect measures, this time it gives cumulative totals and no row subtotal as following:cumulative total.PNG

I want just the totals(not cumulative) and a correct subtotal.

My PBI is attached:

https://1drv.ms/u/s!Ag919_pO_UKrdZt7uM4Bkx2JrAY?e=7LPVBD

 

Please help,

Many thanks in advance.

 

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Need urgent help, Incorrect measure totals

Hi @Meena ,

 

You can add SUMMARIZE and SUMX function in your formula, take the measure [Difference] as example, change it like DAX below, do the same with [Fortnightly Payment] and other measures, just change the red parts of formula.

 

Difference =
var d= [Total_Billing]- [Tot fortnightly payment]    --[Difference] original formula
var _table = SUMMARIZE('Dim week ending_new', 'Dim week ending_new'[Empcost_period end dt],"_Value", d)
return IF(HASONEVALUE('Dim week ending_new'[Empcost_period end dt]), d, SUMX(_table,[_Value]))

Best Regards,

Amy

 

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

Meena Member
Member

Re: Need urgent help, Incorrect measure totals

Thanks @v-xicai for your solution. I used the suggested DAX to calculate Grand Difference:

 

Difference =
var d= [Total_Billing]- [Tot fortnightly payment]    --[Difference] original formula
var _table = SUMMARIZE('Dim week ending_new', 'Dim week ending_new'[Empcost_period end dt],"_Value", d)
return IF(HASONEVALUE('Dim week ending_new'[Empcost_period end dt]), d, SUMX(_table,[_Value]))

But the Measure total is still incorrect as following:

 

Capture_difference.PNG

 

Any more suggestions?

 

Thanks,

Meena

 

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 291 members 3,031 guests
Please welcome our newest community members: