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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

One more step: SUM/FILTER: Colors

I can get the following picture:

City            Computer          Sum of Count   Sum of I   Sum of II   Sum of III

-------------------------------------------------------------------------------------

Ottawa         A                              2                    0                2              0

Ottawa         B                              1                    0                0              1

Toronto        C                              4                    2                1              1

Toronto        D                              3                   3                 0              0

------------------------------------------------------------------------------------

Total                                             10                 5                 3               2

 

How can I make two rows with Ottawa grey background, two rows with Toronto blue background?

 

2 REPLIES 2
vicky_
Super User
Super User

vicky__0-1693953999041.png

If you're using the regular table visual, then you can format each cell (column) based on the value of the city. Unfortunately, you'll need to format each column separately.

Anonymous
Not applicable

I will reorganize the question.

-------------------------------------------------------

City                 School              number of Professor      number of  Parties   

Toronto              A                            20                                        2                         

Toronto              B                            15                                        3

Toronto              C                            30                                        4

Ottawa               D                            18                                        2

Ottawa               E                             24                                       3

Montreal            F                             18                                       2

Montreal            G                            16                                       2

Vancouver          H                            17                                       3

Hamilton            I                              18                                       4

 

My report is the above form with background colors. There are 5 cities.The colors should be A, B, A, B, A

But If we use filter, If only four cities show up, the colors should be A, B, A, B

If only three cities selected, the  colors should be A, B, A.

 

Can we make it?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.