Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi everyone,
I am trying to find a solution to dynamically change the legends on a bar graph to either have values / averages broken down by each State in US or switch and see the average for the whole country against time.
So far I found this solution: https://stackoverflow.com/questions/52428727/power-bi-dynamic-legend however it is only applicable for multiple countries and does not show country average in 1 line.
Is there a work around?
Thanks
Solved! Go to Solution.
@Anonymous , Create a new table and join with a table having state, bidirectional join many to many
new state =
Union(Summarize(Table, Table[State], "All State", Max(Table[State]) ), Summarize(Table, Table[State], "All State", "All"))
Try to use this table as a slicer and legend
Modified version of this video - Single Select with Select All : https://youtu.be/plGqCEZRfXU
@Anonymous , Create a new table and join with a table having state, bidirectional join many to many
new state =
Union(Summarize(Table, Table[State], "All State", Max(Table[State]) ), Summarize(Table, Table[State], "All State", "All"))
Try to use this table as a slicer and legend
Modified version of this video - Single Select with Select All : https://youtu.be/plGqCEZRfXU
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |