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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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