Forum Discussion

jeggen's avatar
jeggen
Helper II
2 years ago
Solved

Sum Columns based on Filter

I am using a visualization (sanka chart) that only allows one value but the chart compares time periods. I would like the user to be able to select which values are being used on the visualization by...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi jeggen ,

    You said that your chart only allows one value and plan to create a column 'Sum' to display the data.I think I could use unpivot.

    The Table data is shown below:

    Please follow these steps:

    1.Change table structure.

    2.Use the following DAX expression to create a measure

     

    Sum = SUM('Table'[Value])

     

    3.Final output

    Best Regards,
    Wenbin Zhou
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.