Forum Discussion
Having issues summing a table correctly
I have a table visual in my report that pulls entirely from a single table. This table contains several calculated columns written in DAX. One of these columns takes the sum of the previous 3 and returns a value based on a SWITCH statement. I am attempting to SUM the values in this SWITCH statement column to get the total at the bottom. Previously I was using the following measure:
I switched some relationships around and ended up doing a simple SUM using a card visual. However, to answer your question, Cyclestar pay is a calculated column (SWITCH statement), but I also have it written as a measure (the measure is not currently being used).
4 Replies
- AnonymousNot applicable
Please let me know if [CycleStar Pay] is a measure or it is a column in the table. If it is a measure, can you please specify the measure code.
Thanks!
-Ayan
- Black_magic100Helper III
I switched some relationships around and ended up doing a simple SUM using a card visual. However, to answer your question, Cyclestar pay is a calculated column (SWITCH statement), but I also have it written as a measure (the measure is not currently being used).
- v-lili6-msftCommunity Support
hi, Black_magic100
This looks like a measure totals problem. Very common. See this post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907If you still have the problem, please share a simple sample pbix file.
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Best Regards,
Lin