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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jadegirlify
Frequent Visitor

I need to filter for All dates after today in a Page

 I have a today's date column that auto populate today's date.

I need help creating a filter for my power BI report view to only show employees with an expiration date after today's date. I dont want to put a specific date in the filter because today's date will always change. So I need a filter that will always shows data with expiration after today only. I have the option to do an advance filter on page, but it only requires me to enter a specific date instead of using "Today". Is there a filter measure that can possibly be created to show "Expiration Date after Today"?

IDName Expiration DateToday's Date
00123

Mark Smith

4/30/20244/26/2024
00256Jane Doe3/15/20244/26/2024
01345James Thomas12/20/20254/26/2024
02123Amy Lu1/1/20234/26/2024
01232Sam Adams2/25/20264/26/2024
00129Ben Toms4/15/20234/26/2024
08127Tammy Glenns5/31/20244/26/2024

 

In the table below I want the result to show how many employees with "Expiration Date after Today". The result should look like this:

IDName Expiration DateToday's Date
00123

Mark Smith

4/30/20244/26/2024
01345James Thomas12/20/20254/26/2024
01232Sam Adams2/25/20264/26/2024
08127Tammy Glenns5/31/20244/26/2024

 

 

Thanks so much

1 ACCEPTED SOLUTION
Jadegirlify
Frequent Visitor

Thanks so much, that helped. How about for "Expiration after 90 days from today?"

View solution in original post

6 REPLIES 6
Jadegirlify
Frequent Visitor

Thanks so much, that helped. How about for "Expiration after 90 days from today?"

Hi @Jadegirlify 

 

You can change Today's Date as follows:

vxuxinyimsft_0-1714979432642.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jadegirlify
Frequent Visitor

After creating this measure Measure = IF(MAX([Expiration Date]) > [Today's Date], 1, 0), I drag the measure into the filter field, it works for the table visual but won't accept it for the card visual. Is there a work around that?

v-xuxinyi-msft
Community Support
Community Support

Hi @Jadegirlify 

 

Thanks for the reply from @Wilson_ , please allow me to provide another insight:

 

First I created a measure to get today's date.

 

Today's Date = TODAY()

 

 

Then I created another measure to determine if the Expiration Date is after today's date.

 

Measure = IF(MAX([Expiration Date]) > [Today's Date], 1, 0)

 

 

Put the measure into the filter so that the visual only shows data where the measure is equal to 1.

vxuxinyimsft_0-1714357726021.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, how can i display this on a card visual?

Wilson_
Memorable Member
Memorable Member

Hi Jadegirlify,

 

Instead of doing an Advanced Filter, pick the Relative Date option and do something like the below. Whether you want to include today or not is up to you.

 

Wilson__0-1714134838277.png


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.