Showing results for 
Search instead for 
Did you mean: 
Not applicable

Shape map to show sales indicators by type



I need shape map visual in Power BI in which i can show sales by state.


Now this 'sales' should be like this, if sales belong to 'my item' it should show red color and rest of the items will show one different color.


here you can assume 'my item' refers to one specific category value for which I need diff. color and rest of the other categories

' value will show another diff. color.


Any suggestions?



Community Support
Community Support

Hi @Anonymous ,


Assum you have two tables and they have relationship with item id.



You can create a measure as below and create a rule on data color based on the measure.

Measure = IF(SELECTEDVALUE('item'[type])="myitem",1,0)




Best Regards,



Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Not applicable

HI @v-jayw-msft ,


Thanks for that. I think I didn't give my requirements clearly earlier. my bad.


Actually I need If in a Single state both the sales are available i.e. Florida has sales for my Item and others as well. Is it possible to highlight those two sales part separately.


For more understanding see below-:
























Legend shows two but only first value is being taken by map.

Is it possible to divide the shaded by different colors based on 'Sales Type' Column.


Thanks a lot.

Super User
Super User

@Anonymous , you can create a color measure like this

color = if(FIRSTNONBLANK(Table[Item],"") = "Item1","green","red")

and use this in conditional formatting after selecting field option.



This uses Rank for top brand , you only need use Item name


Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

Helpful resources

2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors