Forum Discussion
Total doesnt add up the line values - even when using HASONEVALUE
- Anonymous6 years ago
Hi robertomari2020 ,
Please try to update the format of measure "To Be Fulfilled Service Jobs (h) uEoY 3" as below:
To Be Fulfilled Service Jobs (h) uEoY 3 = SUMX ( VALUES ( 'Calendar'[MonthYear] ), SUMX ( VALUES ( 'Tabelle1'[EmployeeID] ), [Open Service Jobs (h) uEoY] * DIVIDE ( [To Be Fulfilled Service Jobs (#) uEoY], [Open Service Jobs (#) uEoY] ) ) )Best Regards
Rena
It looks to me that you should not be using EmployeeID in your SUMMARIZE. If I understand what you are going for, you should just need MonthYear.
- robertomari20206 years ago
Helper I
Hi Greg,
thanks for you really(!) fast answer 🙂
I tried it out like you said, but unfortunately still getting the wrong total... 😞
This is what i tried, but still get the old result:
To Be Fulfilled Service Jobs (h) uEoY 3 = VAR lineValue = [Open Service Jobs (h) uEoY] * DIVIDE([To Be Fulfilled Service Jobs (#) uEoY];[Open Service Jobs (#) uEoY]) VAR tempTbl = SUMMARIZE(Tabelle1; 'Calendar'[MonthYear]; "ABCD"; lineValue) RETURN IF (HASONEVALUE('Calendar'[MonthYear]); lineValue; SUMX(tempTbl;[ABCD]) )- Greg_Deckler6 years ago
Community Champion
Very difficult to troubleshoot these kinds of things. Any way you can share the PBIX?
Hmm, in taking a closer look at your image, try swapping the order of your EmployeeID and MonthYear in your SUMMARIZE so that it matches your hierarchy in your Rows area of the visual. So summarize by MonthYear and then EmployeeID?
- robertomari20206 years ago
Helper I
Hi Greg, tried to swap the summarize column order, but also didnt work... 😞
Can you get the file from here? https://www.dropbox.com/s/q0yflxt6l311zyk/total_not_summing_up_correctly.pbix?dl=0
Thank you for your help and time already!