Forum Discussion
Slicer for dates between
- Anonymous2 years ago
Hi NorbertG ,
I created some data:
Are you referring to the fact that when the row contains a 1, only data less than the slicer date is displayed, and when the row does not contain a 1, the data can be displayed?
Here are the steps you can follow:
1. Create measure.
Flag = var _date=SELECTEDVALUE('Table 2'[Date]) var _text= MAX('Table'[Row1])&"-"&MAX('Table'[Row2])&"-"&MAX('Table'[Row3]) var _if= IF( CONTAINSSTRING( _text,1)=TRUE(),0,1) return IF( _if<>0,_if, IF( _if=0&&MAX('Table'[Date])<SELECTEDVALUE('Table 2'[Date]),1,_if))2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
If the results don't meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi NorbertG ,
I created some data:
Are you referring to the fact that when the row contains a 1, only data less than the slicer date is displayed, and when the row does not contain a 1, the data can be displayed?
Here are the steps you can follow:
1. Create measure.
Flag =
var _date=SELECTEDVALUE('Table 2'[Date])
var _text=
MAX('Table'[Row1])&"-"&MAX('Table'[Row2])&"-"&MAX('Table'[Row3])
var _if=
IF(
CONTAINSSTRING(
_text,1)=TRUE(),0,1)
return
IF(
_if<>0,_if,
IF(
_if=0&&MAX('Table'[Date])<SELECTEDVALUE('Table 2'[Date]),1,_if))
2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
If the results don't meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly