cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

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
Community Support
Community Support

Hi @Smrithi_10 ,

 

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
Community Support
Community Support

Hi @Smrithi_10 ,

 

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

Super User IV
Super User IV

@Smrithi_10 , 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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

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
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors