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
Victor1986
Helper I
Helper I

Formatação condicional com medida

 

Como mostrar cores diferentes de acordo com diferentes condições entre as colunas GRUPO e coluna %ERB's?

 

Se "Estado < 200 ERB's" for maior que 15% e menor que 25% então é Laranja, se for maior que 25% então é vermelho
Se "Estado > 200 < 500 ERB's" for maior que 15% e menor que 25% então é Laranja, se for maior que 25% então é vermelho
Se "Estado > 500 < 750 ERB's" for maior que 15% e menor que 25% então é Laranja, se for maior que 25% então é vermelho
Se "Estado > 750 < 1000 ERB's" for maior que 15% e menor que 25% então é Laranja, se for maior que 25% então é vermelho
Se "Estado > 1000 < 2500 ERB's" for maior que 15% e menor que 25% então é Laranja, se for maior que 25% então é vermelho
Se "Estado > 2500 ERB's" for maior que 15% e menor que 25% então é Laranja, se for maior que 25% então é vermelho

 

Victor1986_0-1664918205973.png

 

1 REPLY 1
amitchandak
Super User
Super User

@Victor1986 , You need to create a color measure and use that in conditional formatting using field value option

 

example- chnage based on need

 

Color = Switch( True() ,
Max(Table[Status]) < 200 ,
Switch(true(),
[ERB] = .25 , "Orange" ,
"Red "
) ,
Max(Table[Status]) < 500 ,
Switch(true(),
[ERB] = .25 , "Orange" ,
"Red "
) ,
Switch(true(),
[ERB] = .25 , "Orange" ,
"Red "
)
)

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors