Forum Discussion
Jerry-P4P
4 years agoFrequent Visitor
SUMX/Calculate Table on data range
Good day community, I am trying to add some values from different colums into a total value. Sadly I don't seem to get it to work.. In the screenshot you can see what I am trying ...
- 4 years ago
Hi Jerry-P4P
I'd recommend unpivotting the data in Power Query.
That will get you a table with a single Date column (which you currently have as separate columns) with a corresponding Amount column.
Your measure is then
Total Amount = SUM(Table[Amount]) - 4 years ago
Hi What Paul said is good.
One minor add on is you will want to click the top of each text column in PQ then choose for the drop down "Unpivot Other Columns"
OR
Highlight all those data columns only and "Unpivot Columns". Then you just have to sum up one column to get your total as suggested.
amitchandak
Super User
4 years agoJerry-P4P ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.