Forum Discussion
Sum Total is not correct
- Anonymous3 years ago
Hi @tomsmith213 ,
You can create another new measure as below and put this new measure to replace the original measure [Calculation] onto the table visual...
New Measure = SUMX ( GROUPBY ( 'V_INV_MSTR', 'V_INV_MSTR'[Year], 'V_INV_MSTR'[Month], 'V_INV_MSTR'[Day], 'V_INV_MSTR'[Shift], 'V_INV_MSTR'[Part Number], 'V_INV_MSTR'[Loc] ), [Calculation] )In addition, you can refer the following links to try to solve your problem...
Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand
Dax for Power BI: Fixing Incorrect Measure Totals
If the above ones can't help you get the desired result, please provide some sample data in your tables(exclude sensitive data) with Text format, the visual Fields settings and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
So how would I change this statement to include the updated directions?
iwuvwoo79 OK, so you start with that Measure and create this:
Calculation =
IF(
HASONEVALUE('Table'[Month]),
[Measure],
SUMX
SUMMARIZE('Table',[Year],[Month],[Day],[Shift],[Part No],[Loc],"__Measure",[Measure]),
[__Measure]
)
)