Forum Discussion
Creating a date What-If parameter
- 3 years ago
Hi CharlotteB
>> from that specific point that the user selects, the data that is one year previous and the data that is one year in the future
Please try this measure, and put it into visual level filter and set it to 1
Measure = var _date=SELECTEDVALUE('Date'[Date]) var _start=EDATE(_date,-12) var _end=EDATE(_date,12) return IF(MAX('Table'[Date])>=_start&&MAX('Table'[Date])<=_end,1,0)result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi CharlotteB
>> from that specific point that the user selects, the data that is one year previous and the data that is one year in the future
Please try this measure, and put it into visual level filter and set it to 1
Measure =
var _date=SELECTEDVALUE('Date'[Date])
var _start=EDATE(_date,-12)
var _end=EDATE(_date,12)
return IF(MAX('Table'[Date])>=_start&&MAX('Table'[Date])<=_end,1,0)
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
- CharlotteB3 years agoHelper II
v-xiaotang I tried this but it isn't working for me - what is the "DateSelected" measure that you made?