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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Delion
Helper IV
Helper IV

Custom color on back ground dashboard

Delion_0-1611737516004.png

 

Hi

Is it possible to custom color background base on a certain threshold

Example :

number 1 background color change to RED when there is 100 tickets returned

number 2 background color change to GRAY when there is 100 tickets completed

 

Thank

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Delion , yes you can create a color measure and use that in the advance option of conditional background color formatting("Field value" option)

if([average ticket]>100, "red" , "grey")

 

examples

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")
Color Year = if(FIRSTNONBLANK('Table'[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK('Table'[Year],2014)>2018,"red","yellow"))

 

refer for steps

 

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

https://youtu.be/M5PvQUy-L_4?t=531

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Delion , yes you can create a color measure and use that in the advance option of conditional background color formatting("Field value" option)

if([average ticket]>100, "red" , "grey")

 

examples

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")
Color Year = if(FIRSTNONBLANK('Table'[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK('Table'[Year],2014)>2018,"red","yellow"))

 

refer for steps

 

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

https://youtu.be/M5PvQUy-L_4?t=531

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.