The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Does anyone know of a way to use a slicer to select which variable is used as a legend.
For example, if I want to show population stats, split by age, region or sex at the moment I need 3 donut charts, one for each grouping variable. What I want to be able to do is just have one donut chart and then enable the user to select which of the three variables the data is grouped by.
@Anonymous,
See the article below. The concept is to create a disconnected table that contains the three groupings (age/region/sex), and create a SWITCH measure that chooses the appropriate measure to display based on the user's selection.
https://www.fourmoo.com/2017/11/21/power-bi-using-a-slicer-to-show-different-measures/
Proud to be a Super User!
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |