Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I want to create the following filters :
I want when I select a date from To I want that the selection From is bigger than the first.
How can I achieve that ?
Solved! Go to Solution.
The simplest way is to create an error message when you select the To less than the From :
FromToValue = IF( SELECTEDVALUE('yourTable'[FromDate]) > SELECTEDVALUE('yourTable'[ToDate])
,"Invalid selection", "")
If you want the hard way :
FromToValue = IF(CALCULATE('yourTable'[ToDate])>=SELECTEDVALUE('yourTable'[FromDate]) ),1,0)
Set the visual slicer:
since the measure could not be applied it in the slicer,you need to use the measure in visual.
The simplest way is to create an error message when you select the To less than the From :
FromToValue = IF( SELECTEDVALUE('yourTable'[FromDate]) > SELECTEDVALUE('yourTable'[ToDate])
,"Invalid selection", "")
If you want the hard way :
FromToValue = IF(CALCULATE('yourTable'[ToDate])>=SELECTEDVALUE('yourTable'[FromDate]) ),1,0)
Set the visual slicer:
since the measure could not be applied it in the slicer,you need to use the measure in visual.
User | Count |
---|---|
94 | |
86 | |
78 | |
70 | |
63 |
User | Count |
---|---|
114 | |
101 | |
97 | |
66 | |
59 |