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
andrea100
Frequent Visitor

Visualization which is green if yes or red if no

Hi, I'm looking to create some kind of visualization like below. I have 3 different measures (D1,D2,D3). The 3 rectangles would represent the 3 difference measures.

If in any case D1 is yes then it is green, if it is no then it is red. 

If in any case D2 is yes then it is green, if it is no then it is red. 

If in any case D3 is yes then it is green, if it is no then it is red.  

 

Is there any way to do this in Power BI? I would appreciate any help and guidance. Thank you.

andrea100_0-1727980545806.png

2 ACCEPTED SOLUTIONS
djurecicK2
Super User
Super User
v-bofeng-msft
Community Support
Community Support

Hi @andrea100 ,

 

Thank you, @djurecicK2 , for sharing the solution. As @djurecicK2  rightly pointed out, if the visual you are using is a table, you can apply conditional formatting to dynamically set the fill color of each cell.

 

If the visual in question is simply an inserted rectangle shape, you may consider using a formula to set its fill color.

vbofengmsft_0-1728022423051.png

vbofengmsft_1-1728022470640.png

vbofengmsft_2-1728022486195.png

If these solutions do not meet your requirements, please consider providing additional information, such as the type of visual you are using, the DAX formulas for D1, D2, D3.

 

Best Regards,

Bof

 

 

View solution in original post

4 REPLIES 4
v-bofeng-msft
Community Support
Community Support

Hi @andrea100 ,

 

Thank you, @djurecicK2 , for sharing the solution. As @djurecicK2  rightly pointed out, if the visual you are using is a table, you can apply conditional formatting to dynamically set the fill color of each cell.

 

If the visual in question is simply an inserted rectangle shape, you may consider using a formula to set its fill color.

vbofengmsft_0-1728022423051.png

vbofengmsft_1-1728022470640.png

vbofengmsft_2-1728022486195.png

If these solutions do not meet your requirements, please consider providing additional information, such as the type of visual you are using, the DAX formulas for D1, D2, D3.

 

Best Regards,

Bof

 

 

Thank you, going to use this for another report! 

djurecicK2
Super User
Super User

Thank you, these resources definetly helped

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.