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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Conditional formatting in rows

Good morning

I need to create conditional formatting in the rows of an array table.

For this case I have 3 rows, but the Hrs column I need to highlight red if it is greater than 1 Hr.

I have another column where I take the hrs to only HH, so based on that column, if it is > = 2hr, let it be red, otherwise I do not paint anything.

alan_manzano_0-1660139649074.png

Best regards!

2 REPLIES 2
amitchandak
Super User
Super User

@Syndicate_Admin , You can create a measure that return color as per the need

 

Switch(True(),

hour(max([Hrs]) ) > 1, "red",

hour(max([HH]) ) > 2, "red",

"Green")

 

Use this conditional formatting using field value option

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...

 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Could you explain to me how to do that measure?
The column in the table is called FPS[Pending Time], and the column that has the time is

Hrs = HOUR(FPS[Pending Time]).
Best regards!

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.