Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I want to set up something akin to a slicer that would allow switching the color saturation of a shape map visual between the total value by state and the average value by state -- is this something that is currently possible in Power BI?
Solved! Go to Solution.
I answered my own question! I just created a table with bystate averages, medians, an sums by state -- tagging them as such in a "calculation" column. I then just created a slicer based on that calculation column and made the color saturation the sum of the "calculation amount".
Still open to other ideas if anyone has any, but this seemed to do the trick.
(Also included a has one value filter on teh calculation column, so no nonsensical sums would be displayed).
A much better way to do it using SWITCH:
https://sqlserverbi.blog/2014/04/19/creating-a-dynamic-parameterized-measure-in-dax/
I answered my own question! I just created a table with bystate averages, medians, an sums by state -- tagging them as such in a "calculation" column. I then just created a slicer based on that calculation column and made the color saturation the sum of the "calculation amount".
Still open to other ideas if anyone has any, but this seemed to do the trick.
(Also included a has one value filter on teh calculation column, so no nonsensical sums would be displayed).
A much better way to do it using SWITCH:
https://sqlserverbi.blog/2014/04/19/creating-a-dynamic-parameterized-measure-in-dax/
User | Count |
---|---|
84 | |
80 | |
70 | |
47 | |
43 |
User | Count |
---|---|
108 | |
54 | |
50 | |
40 | |
40 |