Forum Discussion
Filter +/- 24 hours
- Anonymous5 years ago
Hi rmcmun ,
You could use the following formula to create a new measure :
Measure = IF ( MAX ( 'Table'[Production output time] ) >= NOW () - 1 && MAX ( 'Table'[Production output time] ) <= NOW () + 1, 1, 0 )And apply it to filter pane(set as "is 1") like this:
Please take a look at the pbix file here.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi rmcmun ,
You can simply do it by fetching the current time and adding 24/24 to it, DAX of the measure would look like:
- rmcmun5 years agoFrequent Visitor
Thanks PC2790 !
I have just posted more clarification in respose to vanessafvg . If I create those measures, how would I then use that to filter the chart?
Thanks!
- PC27905 years agoCommunity Champion
For that you cna use a 'Relative time slicer'. It will automatically get you the data of last/next 24 hours.
- rmcmun5 years agoFrequent Visitor
I can add the relative time slicer to add either the last or the next 24 hours, but I don't seem to be able to select BOTH the last and next 24 hours.
Is that possible?
Thanks