Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
haymarketpaul
Creator III
Creator III

Set Analysis - Email Count Based on Date Showing as Zero

QV12 SR3

I have the following set analysis which shows distinct email counts based on certain dates over the previous 2 years.

For some reason the last colmn (7) is showing zeroes instead of any counts and i'm not sure what could be causing it ?  the date formats are all the same (DD/MM/YYYY).

Any ideas what could be causing the lack of any figures in the last column?

Col 2

=Count(DISTINCT{1<[Final 1st Party Email Opt In]={'IN'},[Email Exclusions]={'OK'},[Email Status]={'Good'},[Registration Date]={">=$(=Today()-730)"}>}Email)

Col 3

=Count(DISTINCT{1<[Final 1st Party Email Opt In]={'IN'},[Email Exclusions]={'OK'},[Email Status]={'Good'},[FinalRecencyDate]={">=$(=Today()-730)"}>}Email)

Col 4

=Count(DISTINCT{1<[Final 1st Party Email Opt In]={'IN'},[Email Exclusions]={'OK'},[Email Status]={'Good'},[MergedDateAdded]={">=$(=Today()-730)"}>}Email)

Col 5

=Count(DISTINCT{1<[Final 1st Party Email Opt In]={'IN'},[Email Exclusions]={'OK'},[Email Status]={'Good'},[CMS Last Updated Date]={">=$(=Today()-730)"}>}Email)

Col 6

=Count(DISTINCT{1<[Final 1st Party Email Opt In]={'IN'},[Email Exclusions]={'OK'},[Email Status]={'Good'},[CMS Login Date]={">=$(=Today()-730)"}>}Email)

Col 7

=Count(DISTINCT{1<[Final 1st Party Email Opt In]={'IN'},[Email Exclusions]={'OK'},[Email Status]={'Good'},[Event Type]={Open},[Event Date]={">=$(=Today()-730)"}>}Email)

Zero Date Count.png

1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Try this:

=Count(DISTINCT{1<[Final 1st Party Email Opt In]={'IN'},[Email Exclusions]={'OK'},[Email Status]={'Good'},[Event Type]={Open},[Event Date]={">=$(=date(Today()-730),'DD/MM/YYYY)"}>}Email)


date(Today()-730),'DD/MM/YYYY)=26/10/2014 Also check if have any data fulfilling this condition also.


Regards

KC

Best Regards,
KC

View solution in original post

4 Replies
sunny_talwar

What is the format of Event Date field in your application? Is it different format to the other date fields that you have?

jyothish8807
Master II
Master II

Try this:

=Count(DISTINCT{1<[Final 1st Party Email Opt In]={'IN'},[Email Exclusions]={'OK'},[Email Status]={'Good'},[Event Type]={Open},[Event Date]={">=$(=date(Today()-730),'DD/MM/YYYY)"}>}Email)


date(Today()-730),'DD/MM/YYYY)=26/10/2014 Also check if have any data fulfilling this condition also.


Regards

KC

Best Regards,
KC
haymarketpaul
Creator III
Creator III
Author

Thanks Sunny - you're right the other dates are numbers and the offending date was in 'DD/MM/YYYY'

haymarketpaul
Creator III
Creator III
Author

Perfect - Thank you - was a date format issue after all