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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all
I am having trouble manipulating data for a shape map visual and hope you can help.
My data is as follows
Name. Measure A. Measure B
Location A. 100. 300
Location B. 200. 200
Location C. 300. 100
I am using a gradient to fill the colour on my shape mape (red (lowest score) is bad and green (highest score) is good) but in the example above, location A's 100 is actually good for Measure A and should be green and the 300 is good for Measure B and also should be green, but when using the gradient it puts Measure A as red when I want it to be green.
Any advice or help out there?
Many thanks
Solved! Go to Solution.
Create a new measure for the inverted Measure A:
Inverted Measure A = MAXX(ALL('Table'[Measure A]), 'Table'[Measure A]) - 'Table'[Measure A]
In your shape map visual, replace the original Measure A with the new Inverted Measure A.
Ensure that Measure B remains as it is since it already aligns with your desired color gradient.
Proud to be a Super User! |
|
Thank you!
Create a new measure for the inverted Measure A:
Inverted Measure A = MAXX(ALL('Table'[Measure A]), 'Table'[Measure A]) - 'Table'[Measure A]
In your shape map visual, replace the original Measure A with the new Inverted Measure A.
Ensure that Measure B remains as it is since it already aligns with your desired color gradient.
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |