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
Samcooke
Frequent Visitor

Display Dates in the past and for the next 60 days

Hi All,

 

I have a need to create a report that displays all items that are either alreay expired or that will expire in th enext 60 days. Below is a sample table. How do I set a filter to the next 60 days also keep the data in the past? And this data changes daily

WH_IdInv_Item_Part_Status_NameLot_Lot_CodeLot_Exp_Date
1894Kitted2091/31/2022 0:00
1894Kitted518240491/31/2022 0:00
1894Kitted11611/30/2022 0:00
1894Kitted11811/30/2022 0:00
1894Kitted11911/30/2022 0:00
1894Kitted13011/30/2022 0:00
1894Kitted17811/30/2022 0:00
1894Kitted5237752011/30/2022 0:00
1894Kitted5237948711/30/2022 0:00
1894Kitted523930311/31/2023 0:00
1894Kitted524072902/28/2023 0:00
1894Kitted524072922/28/2023 0:00
1894Kitted524072932/28/2023 0:00
1894Kitted524073052/28/2023 0:00
1894Kitted524079342/28/2023 0:00
1894Kitted524083682/28/2023 0:00
1894Kitted524089002/28/2023 0:00
1894Kitted524096622/28/2023 0:00
1894Kitted524101592/28/2023 0:00
1894Kitted524116372/28/2023 0:00
1894Kitted524126062/28/2023 0:00
1 ACCEPTED SOLUTION
grantsamborn
Solution Sage
Solution Sage

If you are meaning display everything before 60 days from TODAY:

zMeasure = IF( MAX('Expirations'[Lot_Exp_Date]) < TODAY() + 60, "Expired", "Active")

View solution in original post

2 REPLIES 2
Samcooke
Frequent Visitor

That was it. You rock. Thanks

grantsamborn
Solution Sage
Solution Sage

If you are meaning display everything before 60 days from TODAY:

zMeasure = IF( MAX('Expirations'[Lot_Exp_Date]) < TODAY() + 60, "Expired", "Active")

Helpful resources

Announcements
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.

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.