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
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
v-jayw-msft
Community Support
Community Support

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 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

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 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
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

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

Top Solution Authors