cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CallumMurfet
Helper II
Helper II

Measure totals not summing properly

power bi help image.png

 

Hello I need help, where my measure is not summing properly.

 

Here I have employment by industry code. I have a measure for employment in a particular segment of the industry, as well as the total employment in the industry.

 

I have the % of employment in segment as the total and then apply this to another employment figure. To derive a final employment estimate titled new employment * employment share.

 

However my measure at 184.3k does not sum correctly. It should sum all of those in the last column which is around 2.3m. The issue is that its making the calculation on the totals rather than the values in the columns.

 

I don’t know if this requires me to put in sumx somewhere. I appreciate any of your help.

1 ACCEPTED SOLUTION

Interesting because it looks like the measurement is correct on the visible rows, no?

This is an example: 

AminAlian_2-1656674668587.png

 

 

View solution in original post

6 REPLIES 6
AminAlian
Frequent Visitor

Hello @CallumMurfet !

 

You are correct in thinking you have to use a SUMX.

 

Try adding a 

 

Measure = SUMX('Table', [new employment] * [employment share] )

 

as sumx calculates each row

that didnt seem to work, but made the measure total much larger. 

 

second power bi image.PNG

Interesting because it looks like the measurement is correct on the visible rows, no?

This is an example: 

AminAlian_2-1656674668587.png

 

 

actually that worked, its because i was putting sum( within the sumx, when i didnt need to, many thanks!

I think see the issue in that its now summing the employment % shares first and then applying that to the sum of new employment. , which is then increasing the value to 26m

Yes the visible rows are there, but it seems to be summing other values which dont appear in the column in the table, but make up the total.

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Dev Camp Session 26

Check it Out!

Mark your calendars and join us on Thursday, September 29 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors