Forum Discussion
motyagi
Helper I
8 years agoGrand Total In power BI matrix doesn't match
Hi There,
I have a Table and the grand totals for a measure dont match up. i.e If I add each row in the table in excel it doesn't give me the same result as Power BI.
How can i fix this ? Please Help !!!
Hi, try with this measure:
Result-CostExpectation = IF ( HASONEVALUE ( Table1[Project ] ); [CostExpectationM]; SUMX ( VALUES ( Table1[Project ] ); [CostExpectationM] ) )Regards
Victor
8 Replies
- sqlguru448
Helper III
Can you provide sample data where you have issue?
- motyagi
Helper I
Project NI PY Total PY NI % I CY Cost Expectation A 163024174 371237679 43.91% 104112029 185628247.3 B 42310997 115879854 36.51% 36790474 57949449.39 C 21395266 138467319 15.45% 48474093 57332877.72 D 390563 3140034 12.44% 1374735 1570016.429 Total 227121000 628724886 36.12% 190751331 298627859.5 Cost Expectation = ICY/(1-NI %)
The grand total is performing this at the grand total level row I just need it to add it for all the Projects so the sum is 302480591.
Thanks
- sqlguru448
Helper III
I am not sure what exact relationship you have in your modeling, but when I tried to populate and apply the formula for cost expectation. I was able to see the correct Grand Total.
Screenshot Above.