cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
arielliu Frequent Visitor
Frequent Visitor

Table total incorrect for measures

I have a table of fact with 5 columns. The last 3 columns are measures as below. In Power BI, the total of those measures are not correct for some reason. I couldn't figure out why. Can someone help please? screenshot link in below.
 
Forecast left to ship = if(CALCULATE([Lower of forecast or commit]-[Sum Billing QTD])>0, CALCULATE([Lower of forecast or commit]-[Sum Billing QTD]),0)
 
Lower of forecast or commit = if([Sum Supply Commit]=0,[Sum Sales Forecast],(IF([Sum Sales Forecast]<=[Sum Supply Commit],[Sum Sales Forecast],[Sum Supply Commit])))

 

Forecast left to ship = if(CALCULATE([Lower of forecast or commit]-[Sum Billing QTD])>0, CALCULATE([Lower of forecast or commit]-[Sum Billing QTD]),0)
 
Data screenshot:

https://imgur.com/oLXM0gv 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Table total incorrect for measures

Hi @arielliu ,

I'd like to suggest you take a look at below blog about measure total calculations:
Measure Totals, The Final Word  

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |

View solution in original post

4 REPLIES 4
arielliu Frequent Visitor
Frequent Visitor

Re: Table total incorrect for measures

PaulDBrown Senior Member
Senior Member

Re: Table total incorrect for measures

@arielliu

Try the following syntax, including each of your measures in separate new measureS:

Sum of columns = SUMX(SUMMARIZE(table, Table[product], “sum of measure”, [your measure]), [sum of measure]])
Community Support Team
Community Support Team

Re: Table total incorrect for measures

Hi @arielliu ,

I'd like to suggest you take a look at below blog about measure total calculations:
Measure Totals, The Final Word  

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |

View solution in original post

arielliu Frequent Visitor
Frequent Visitor

Re: Table total incorrect for measures

Thanks! My issue is resolved with the solution in the article from your link.

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (1,249)