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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
entomophile
Regular Visitor

Filtering "older than" data

I have a table of inspections.  It is summarized  to only display the "Latest" inspection date at each Site.

 

Screenshot 2024-01-31 110420.png

 

I want to filter the table so that I only see the latest inspection if it is greater than 14 days old.  The visual filter only gives me specific date options, not relative.  I have been playing with the FILTER expression in DAX but I'm not getting anywhere.

1 ACCEPTED SOLUTION
gadielsolis
Super User
Super User

Hello,

 

If I'm not mistaken Inspection is a field within the table so you'll need to have this as a measure.

 

You can use LastInspection=Max(Inspection)

Then to show only if is greater than 14 days you can use the following measure

LastInspection2=If(INT(Today()-LastInspection)>14,LastInspection)

 

Hope this helps

 

 

View solution in original post

2 REPLIES 2
gadielsolis
Super User
Super User

Hello,

 

If I'm not mistaken Inspection is a field within the table so you'll need to have this as a measure.

 

You can use LastInspection=Max(Inspection)

Then to show only if is greater than 14 days you can use the following measure

LastInspection2=If(INT(Today()-LastInspection)>14,LastInspection)

 

Hope this helps

 

 

It looks like that works!  Thank you so much.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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