Forum Discussion
Using selected date in slicer to filter dates in another table
- 7 years ago
Hi bcng,
Based on my test, you could refer to below steps:
Create a measure:
Measure = IF(CALCULATE(MAX('To'[Date]))>=SELECTEDVALUE('From'[Date]),1,0)Set the visual slicer:
Result:
But the measure could not be applied it in the slicer, I suggest you use the measure in visual.
Regards,
Daniel He
So, typically the way you do that is to disconnect your slicers from everything using Edit Interactions. Then you create a measure that grabs the MAX or SELECTEDVALUE of each slicer and performs a calculation which returns a value if it is within that range or BLANK() or 0 otherwise and that essentially becomes your filter.
If that doesn't help, need more information to be more specific. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Hi Greg,
I tried using this measure:
- v-danhe-msft7 years agoMicrosoft Employee
Hi bcng,
Based on my test, you could refer to below steps:
Create a measure:
Measure = IF(CALCULATE(MAX('To'[Date]))>=SELECTEDVALUE('From'[Date]),1,0)Set the visual slicer:
Result:
But the measure could not be applied it in the slicer, I suggest you use the measure in visual.
Regards,
Daniel He