Forum Discussion
Anonymous
6 years agoNot applicable
Time Comparisons with NOW()
Hello, In a measure, I am trying to compare the time from NOW()to a static value using TIME(), but it is only working on the < condition. The function NOW() is returning 7/28/2020 11:18AM What...
Anonymous
6 years agoNot applicable
amitchandak This works with the first condition, but it is still returning Blank() when I try:
NOW() > Today() + Time(3,30,0)
amitchandak
6 years agoSuper User
Anonymous , hope you using that in a fi or filter
try like
if(NOW() >( Today() + Time(3,30,0)) ,1,0)
- Anonymous6 years agoNot applicable
amitchandak I am using it as a report page filter. I actually made a mistake in my post, as It is actually a calculated column in my date table rather than a measure.
Regardless,if(NOW() >( Today() + Time(3,30,0)) ,1,0) works and returns 1.
Any idea on why it's returning blank when I switch the true condition to TRUE() and the false condition to FALSE()?
- amitchandak6 years agoSuper User
Anonymous , I did not get that
I tried
Measure =NOW() > Today() + Time(3,30,0) it retured trueI triedMeasure = if(NOW() > Today() + Time(3,30,0) ,True(),false())it retured true