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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
holydragon
Frequent Visitor

OKViz Synoptic Panel - Changing Map colors based on category

Hello,

 

I have created a .svg map for Synoptic Panel that needs to have its areas change based on three different columns of data.  The columns contain the ratings of  high, low, med and the corresponding population, income, and pet ownership.

 

Area   Pop   Income  PO

A1        L          H         L

A2        H         L          M

A3        M        M         H

 

In order to change colors according the category, I reformatted to data to:

Area   Pop   Income  PO

A1        L      Pop

A2        H     Pop

A3        M    Pop

A1        H     Income

A2        L      Income

A3        M    Income

A1        L      PO

A2        M    PO

A3        H     PO

 

When I select Pop - I get the colors corresponding to H, M, L

When I select Income or PO, I get nothing and the values show "blank" when I mouseover the areas.

 

Anyone know how to get this working?

 

What am essentailly doing is using one map for several categories of data.  The color change based on the category selected.

 

 

HD

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @holydragon 

 

It's not clear enough. Which data is the "category" data? Does it refer to the population, income, and pet ownership? And are you setting up conditional formatting to change the colors? 

 

Based on my understanding, you can first unpivot the table in Power Query Editor. For the first table, right click on "Area" column header and select "Unpivot Other Columns". 

vjingzhang_1-1651027258223.png

Then create a measure to decide the colors according to rating values. Then use this measure to set the conditional formatting colors. Below is an example with a table visual. 

Color = SWITCH(SELECTEDVALUE('Table'[Value]),"H","Red","M","Yellow","L","Green")

vjingzhang_2-1651027647673.png

 

If this is not what you want, can you provide more details like how do you change colors currently and what is your expected result?

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.