Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I am trying to add style attributes to a geoJSON file so it will be rendered in the IconMap visual. I have looked at the IconMap page and under geoJSON there is a bullet point,
I am not understanding how to fill the opacity based on measure values. Can someone please explain?
Also, I was looking at the "Use formatting from the GeoJSON..." but I don't think that is what is needed.
I am overlaying parcels and want transparency of about 75% so the buildings can be seen.
I found where I could create a measure with the opacity.
Thank you,
Carol
Solved! Go to Solution.
Hi @samye228 -Yes, you're on the right track! In IconMap, you can use a measure to dynamically set the styling attributes of GeoJSON features, including opacity.
Define an RGBA color measure in DAX, where the last value (alpha) controls the transparency:
MapColor = "rgba(255, 255, 224, 0.75)"
In the IconMap visual:
Go to the Format Pane.
Navigate to the Shapes section (where you configured the GeoJSON).
Under Fill Color, click on the fx (conditional formatting) button.
Choose the measure (MapColor) you created.
Overlay Parcels with Transparency:
Ensure the GeoJSON file includes a valid "style" property or uses the dynamic style based on the measure you've created.
If you're seeing the parcels with transparency and the underlying buildings are visible, then your setup is working correctly.
Hope the above details helps.
Proud to be a Super User! | |
Hi @samye228 -Yes, you're on the right track! In IconMap, you can use a measure to dynamically set the styling attributes of GeoJSON features, including opacity.
Define an RGBA color measure in DAX, where the last value (alpha) controls the transparency:
MapColor = "rgba(255, 255, 224, 0.75)"
In the IconMap visual:
Go to the Format Pane.
Navigate to the Shapes section (where you configured the GeoJSON).
Under Fill Color, click on the fx (conditional formatting) button.
Choose the measure (MapColor) you created.
Overlay Parcels with Transparency:
Ensure the GeoJSON file includes a valid "style" property or uses the dynamic style based on the measure you've created.
If you're seeing the parcels with transparency and the underlying buildings are visible, then your setup is working correctly.
Hope the above details helps.
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |