Forum Discussion
Anonymous
5 years agoNot applicable
Date Range Slicer for Multi-Date Range
Problem: Create a Date Range Slicer that filters Job Sites based on, StartDate and EndDate range. IF the Date Range Slicer falls within the "StartDate/EndDate" range then we show the Job Site data....
- 5 years ago
Hi Anonymous ,
Create a measure as below:
Show? = var _mindate=MINX(ALLSELECTED('Table'),'Table'[Date Filter Range]) var _maxdate=MAXX(ALLSELECTED('Table'),'Table'[Date Filter Range]) Return IF((MAX('Table (2)'[End Date]) in FILTERS('Table'[Date Filter Range])&&MAX('Table (2)'[End Date])>=_mindate)||(MAX('Table (2)'[End Date])>=_maxdate&&MAX('Table (2)'[Start Date])<=_maxdate),"yes","no")And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Jihwan_Kim
Super User
5 years agoHi, Anonymous
I am not sure if I understood your question correctly. but please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
Show Measure =
IF (
ISINSCOPE(Dates[Date]),
CALCULATE (
CONCATENATEX ( Sites, Sites[Job], ", " ),
FILTER (
Sites,
MIN ( Dates[Date] ) <= Sites[End Date]
&& MAX ( Dates[Date] ) >= Sites[Start Date]
)
)
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM