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
Sumeesh
Regular Visitor

Highlight the data that is 30 days old from today

Hello Everyone,

 

I need a solution in highlighting the data which is 30 days older than today whenever I open the dashboard in Power-BI.

Below is my data which is in excel format which is imported in power bi dashboard:-

Ticket dateAssigned byAssigned to 
Wednesday, April 15, 2020Mr. XMr. A
Tuesday, March 10, 2020Mr. YMr. B
Monday, April 13, 2020Mr. ZMr. C

 

Today's date is 22nd April 2020 and as I refresh the power-bi dashboard, the ticket date which is 30 days older should be highlighted. 

Ticket dateAssigned byAssigned to 
Wednesday, April 15, 2020Mr. XMr. A
Tuesday, March 10, 2020Mr. YMr. B
Monday, April 13, 2020Mr. ZMr. C

Please note today's date will be changing as per the day changes.

Let me know in case of any issue in understanding the above scenario.

 

Thanks and Regards,

S

 

1 ACCEPTED SOLUTION
lkalawski
Memorable Member
Memorable Member

Hi Sumeesh,

 

1.  Create a measure that will check if the difference between Today () and date is greater than 30 days (if it is, assign 1):

 

Older than 30 days = IF( DATEDIFF(SELECTEDVALUE('Table'[Ticket date]),TODAY(), DAY) > 30,1,0)

 

 

2. Then use this measure in Conditional Formatting -> Font Color. Color for "1".

Ex1.png

3. The result:

Ex2.png

 



_______________
If I helped, please accept the solution and give kudos! 😀

View solution in original post

1 REPLY 1
lkalawski
Memorable Member
Memorable Member

Hi Sumeesh,

 

1.  Create a measure that will check if the difference between Today () and date is greater than 30 days (if it is, assign 1):

 

Older than 30 days = IF( DATEDIFF(SELECTEDVALUE('Table'[Ticket date]),TODAY(), DAY) > 30,1,0)

 

 

2. Then use this measure in Conditional Formatting -> Font Color. Color for "1".

Ex1.png

3. The result:

Ex2.png

 



_______________
If I helped, please accept the solution and give kudos! 😀

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.