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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.