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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filtering based on Todays date

I have two coloumns in one of the tables of my data model : Start Date and End Date 
I need to filter values based on the Condition that every time the user opens the report ,the date of opening the report(Current date) should fall between the Start Date and End Date .
Can anyone help me out in this?

Thanks in advance !!!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a measure like below and add it to filter.

Measure = IF(SELECTEDVALUE('Table'[date])<=TODAY(),1,0)

Result would be shown as below.

1.PNG

2.PNG

 

Best Regards,

Jay 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a measure like below and add it to filter.

Measure = IF(SELECTEDVALUE('Table'[date])<=TODAY(),1,0)

Result would be shown as below.

1.PNG

2.PNG

 

Best Regards,

Jay 

amitchandak
Super User
Super User

@Anonymous , You to create a new column like this in date table and select as "Select" value

 

Switch( True () ,
[Date] >=min(Table[Start Date]) && [Date] >=max(Table[End Date]), "Select",
"UnSelected"
)

 

Also refer: https://www.youtube.com/watch?v=hfn05preQYA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for the answer.Do I need to create a new date table which is only for dates or I can add this column in the exisiting table which has start and end date coloumns?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.