The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I have a table that contains data for different items that have expiration dates.
I would like to be able to filter the table and show rows whose expiration dates are x months into the future.
So, for example, if I'm looking at the table now (in May 2023), I would like to see only rows with expiration dates 3 months into the future (the entirety of August 2023).
If I'm looking at the table in October 2023, I would like to see only rows with expiration dates 5 months into the future (the entirety of March 2024).
Only the month should be taken into consideration.
The table looks like this:
Any help would be greatly appreciated!
Solved! Go to Solution.
for caluclated column
Near Expiry =
IF(
MONTH(TODAY()) + 3 >= MONTH('Table'[Expiry Date]),
"Yes",
"No"
)
for measure
Near Expiry Measure =
IF(
MONTH(TODAY()) + 3 >= MONTH(MAX('Table'[Expiry Date])),
"Yes",
"No"
)
for caluclated column
Near Expiry =
IF(
MONTH(TODAY()) + 3 >= MONTH('Table'[Expiry Date]),
"Yes",
"No"
)
for measure
Near Expiry Measure =
IF(
MONTH(TODAY()) + 3 >= MONTH(MAX('Table'[Expiry Date])),
"Yes",
"No"
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
19 | |
18 | |
14 |
User | Count |
---|---|
42 | |
35 | |
24 | |
20 | |
19 |