Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello!
How set 'today' condition in set analysis?
I want to see some measures, related only to current day, without filtering.
This code does nothing.
Count({$<[date]={'=today()'}>} [contactID])
What is wrong?
Oops, I missed a parenthesis at the end:
Count({$<[date]={"$(=Date(Today(), 'DD.MM.YYYY'))"}>} [contactID])
Try this:
Count({$<[date]={"$(=Date(Today(), 'DateFieldFormatHere')"}>} [contactID])
Add the date field format in place of this -> DateFieldFormatHere
nope, it gives null as result. tryed today(), tryed integer number - all with same results
Does your date have a timestamp?
Count({$<[date]={'$(=timestamp(today()))'}>} [contactID])
mmm I tested with the following instruction without problems .. Sum({<date={"=Today()"}>} contactID) ..
another point is: What is the format of your date field, Is it Date or Timestamp?
Check these links to make sure dates are read as dates:
And this one to understand how is date used in set analysis:
Is solid Date. 'DD.MM.YYYY'
So this didn't work?
Count({$<[date]={"$(=Date(Today(), 'DD.MM.YYYY')"}>} [contactID])
Also, make sure that date is not Date (with upper case D) or DATE (or all upper case) and same is with all your other fields.
Can you share your QVW file with few records?
Unfortunately, your formula return null in my case. All syntax is correct, i've double cheked it.