Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
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 using a slicer.
Sample data would be:
| Customer | Year 1 | Year 2 | Year 3 | Year 4 | Sum* |
| 1 | 10 | 10 | 20 | 30 | 70 |
| 2 | 100 | 10 | 20 | 50 | 180 |
I envisoned adding the column "Sum" above and using that for the value on my visualization. Then ideally having a slicer where the user can select which of the other columns are included in this, e.g., if they select just year 1 the visual shows values based on year 1 data, if they select year 2, just year 2 data etc. Is it possible to do something like this with a column who's data is derived from a variable combination of other columns based on a filter?
Solved! Go to Solution.
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.
Thanks! Unpivoting was the route to go.
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.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 28 | |
| 28 | |
| 19 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 37 | |
| 29 | |
| 18 | |
| 17 | |
| 15 |