cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chema_Ortega
Helper III
Helper III

Formato Condicional

 Hola    Espero que todos estén bien 

 

Mira la foto de abajo. Me gustaría colorear los datos solo cuando el número de semana es la semana actual (tengo una medida para la semana actual = 

WEEKNUM (HOY ())
 
¿Es posible? Muchas gracias por adelantado. ¡Mis mejores deseos y saludos!
 
Chema
5 REPLIES 5
amitchandak
Super User IV
Super User IV

@Chema_Ortega 

These are a few examples of how can you create a color measure

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

 

In conditional formatting under advance, control choose field option and choose such a measure, You will get the desired result

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Captura11111.JPG

Muchas gracias!!!

 

Lo que necesito es que sólo una fila de la Tabla se ponga en rojo si la semana de la fila es la semana en la que estamos ahora mismo... Sólo quiero que cambie de color esa fila, no el resto... ¿Es posible?

Pragati11
Super User III
Super User III

Hi @Chema_Ortega ,

 

I think yoy forgot to attach the picture. Can you please do that?

 

Thanks,
Pragati

My Blog: Data Vibe
Connect: LinkedIn
Connect: Twitter






If this helps, Appreciate a KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




I've just did it. Thanks a lot!

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors