cancel
Showing results for
Did you mean:
Highlighted
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:
1 ACCEPTED SOLUTION

Accepted Solutions
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: | |
4 REPLIES 4
Frequent Visitor

## Re: Table total incorrect for measures

My PBIX file is attached here:

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

## 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: | |
Frequent Visitor

## Re: Table total incorrect for measures

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

Announcements

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

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

Find out where you can attend!

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