Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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"
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |