Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jlampard40
Contributor III
Contributor III

Today() - what am I doing wrong?

I have the following set analysis formula:

=count({<[WBR_Stat_Date]={'Today()'}>} [WBR_Event_Key])

I would like to just count the [WBR_Event_Key] relating to those records which only have today's date on them.  The field for this is [WBR_Stat_Date] - I need to identify the data relevant to today() only.  Help!

many thanks. 

1 Solution

Accepted Solutions
sunny_talwar

Try this

=Count({<[WBR_Stat_Date] = {"$(=Today())"}>} [WBR_Event_Key])

Or this

=Count({<[WBR_Stat_Date] = {"$(=Date(Today()))"}>} [WBR_Event_Key])

 

View solution in original post

2 Replies
sunny_talwar

Try this

=Count({<[WBR_Stat_Date] = {"$(=Today())"}>} [WBR_Event_Key])

Or this

=Count({<[WBR_Stat_Date] = {"$(=Date(Today()))"}>} [WBR_Event_Key])

 

jlampard40
Contributor III
Contributor III
Author

Thanks Sunny! 🐵