Reputation: 65
I have a table
I want to sum up the values for each type and create two other measures/columns (percentage and cumulative percentage) as shown in the table below
I tried with the following DAX
column = summarize(Table1, Table1[Type], "Total Value", sum(Table1[value]))
but I get the following error. I also tried with the GroupBy
function, I get the same error.
The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
Please help!
Upvotes: 0
Views: 137
Reputation: 271
Original data and Final output
Details of target data:
For Value column Select aggregation as sum
For %GT Value column (percentage column in you case). Pull the value column once again in table visual and select "Show value as" then select "Percent of grand total"
For Cumulative percentage, create a quick measure for running total and display it again as "Percent of grand total"
Upvotes: 1