Skip to main content
Announcements
Global Transformation Awards submissions are open! SUBMIT YOUR STORY
cancel
Showing results for 
Search instead for 
Did you mean: 
emmanuelkatto24
Contributor II
Contributor II

Emmanuel Katto Dubai : How to Count Today's Occurrences Using Set Analysis in QlikView/Qlik Sense?

Hi all,

I’m Emmanuel Katto from Dubai, United Arab Emirates (UAE) trying to count the occurrences of a field (MyField) based on today’s date, but I’m running into some issues when working with the CompletionDate field, which is a timestamp.

Here’s what I’ve tried so far:

  1. This formula throws an error:

Count({<Date(CompletionDate, 'DD/MM/YYYY')={$("=Date(Today(), 'DD/MM/YYYY')")} MyField)

 

This one returns zero:

 

javascript
 

 

Count({<CompletionDate={$("=Date(Today(), 'DD/MM/YYYY')")} MyField)

 

The CompletionDate field is a timestamp, and I need to count occurrences of MyField where the date part matches today’s date.

Has anyone faced this issue or know how I can get the correct count for today’s occurrences? Any suggestions or alternative approaches would be greatly appreciated!

Thanks!

 

Regards

Emmanuel Katto

 

Labels (1)
3 Replies
VBD
Partner - Creator
Partner - Creator

Hello, 

The best is to create an other field in your script with the "floor()" function.

Floor(CompletionDate) as "mydate"

Or you can use a set analysis when your date is between today-1 and today+1

Count({<CompletionDate={>$("=Date(Today()-1, 'DD/MM/YYYY')")<$("=Date(Today()+1, 'DD/MM/YYYY')")} MyField)

 

regards,

Valentin Billaud
Next Decision
Qrishna
Master
Master

Hows yu date look like. could you provide some sample data for both MyField and CompletionDate ?

VBD
Partner - Creator
Partner - Creator

Hello, 

Could you do a feedback please ?

 

Regards,

Valentin Billaud
Next Decision