Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
powerbiexpert22
Impactful Individual
Impactful Individual

unable to assign column for color in map

i want to change the color of bubbles conditionally in my map , i created below measure and tried to assign as shown below however it is not assigning measure value to color. please see below pbix for reference

 

https://drive.google.com/file/d/1TA2FBfEgunJtqJkJvpScatX4WRvOmpgV/view?usp=drive_link

 

 

Colour in zone =
SWITCH(
    TRUE()
    ,SELECTEDVALUE(Feuil1[Zip Code]) IN VALUES(Zone1[Zone1]), "Blue"
    ,SELECTEDVALUE(Feuil1[Zip Code]) IN VALUES(Zone2[Zone2]), "Green"
    ,"Red"
)

 

powerbiexpert22_0-1736300398890.png

powerbiexpert22_1-1736300673805.png

 

 

 

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @powerbiexpert22 

The Zone1 and Zone2 tables are created based on Feuil1 table, for that reason the field value is not working.
I am not sure what is the reason for creating Zone1 and Zone2 tables where you have all data inside the Feuil1 table.
I modified the measure and found it is working.

PijushRoy_0-1736306787116.png

 

I am attaching PBIX file.
Please let me know the status.




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

1 REPLY 1
PijushRoy
Super User
Super User

Hi @powerbiexpert22 

The Zone1 and Zone2 tables are created based on Feuil1 table, for that reason the field value is not working.
I am not sure what is the reason for creating Zone1 and Zone2 tables where you have all data inside the Feuil1 table.
I modified the measure and found it is working.

PijushRoy_0-1736306787116.png

 

I am attaching PBIX file.
Please let me know the status.




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors