cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lyhis
Helper IV
Helper IV

Relative DAX date filter

Hi

 

This is most likely extremely easy but I have not found a solution for this yet. I need to config my date slicer to start from 31/08/2020 until TODAY. I tried DATESBETWEEN function but that's not working for me:

Relative date = DATESBETWEEN('mee v_MasterData_Dates'[date_bkey], 31/08/2020, TODAY())
1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@Lyhis , Typically you have to create a flag like this and use

 

if( [Date] >=eomonth(today(),-1) && [Date] <= today(),1,0)

or

 

if( [Date] >=date(2020,08,31) && [Date] <= today(),1,0)



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!

View solution in original post

1 REPLY 1
amitchandak
Super User IV
Super User IV

@Lyhis , Typically you have to create a flag like this and use

 

if( [Date] >=eomonth(today(),-1) && [Date] <= today(),1,0)

or

 

if( [Date] >=date(2020,08,31) && [Date] <= today(),1,0)



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!

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

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.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.