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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Unicorn_Tech
Resolver I
Resolver I

Conditional Formatting based on time

Apologies if this is a duplicate post.


I would like to set up conditional formatting, comparing one value in a column to another value in a column (for the same row.)  I want to know if Monthly Average Time on a Page is larger than the Yeary Average Time on a Page.

 

Sample table:

PageMonthly AverageYearly Average
Home Page01:3201:28
about Page00:5201:20

 

Ideally, for the above table, the Monthly Average for "Home Page" would be bold, and the Yearly Average for "About Page" would be bold.

 

This is more complicated because this is a time value.  I'm assuming I would have better luck using the raw decimal data to do the comparison of greater than?  The above is correct, but it's formatted to show a correct value.

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@Unicorn_Tech  Can you please try doing it below if helps you.

 

Change the time value to below

negi007_1-1611240479444.png

 

then create one measure like 

Check = if (SUM(Page[Yearly Average])>SUM(Page[Monthly Average]),1,0)
 
then set the rules like below for both monthly average and Yearly Average
negi007_5-1611240588678.png

below is the ouput

negi007_0-1611240441585.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

2 REPLIES 2
negi007
Community Champion
Community Champion

@Unicorn_Tech  Can you please try doing it below if helps you.

 

Change the time value to below

negi007_1-1611240479444.png

 

then create one measure like 

Check = if (SUM(Page[Yearly Average])>SUM(Page[Monthly Average]),1,0)
 
then set the rules like below for both monthly average and Yearly Average
negi007_5-1611240588678.png

below is the ouput

negi007_0-1611240441585.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Thank you so much!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.