Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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/
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!