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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
bhavvibudagam
Creator II
Creator II

simple count function

Hi Experts,

Can any one please help me on this.

Under DOB field I have entries like

DOB

1991-05-12

2002-01-29

1985-06-30

2011/19/01

02/05/2015

I have to count the DOB where is not in the YYYY-MM-DD format.

Example

2011/19/01

02/05/2015 is in different format so the count is 2.

Thanks in advance.

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be create flag like?

If(Date(DOB, 'YYYY-MM-DD'), 1,0) as Flag

And expression is

Count({<Flag = {0}>} Date)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

May be create flag like?

If(Date(DOB, 'YYYY-MM-DD'), 1,0) as Flag

And expression is

Count({<Flag = {0}>} Date)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be this

If(IsNum(Num(Date#(DOB, 'YYYY/DD/MM'))), 1,

If(IsNum(Num(Date#(DOB, 'DD/MM/YYYY'))), 2)) as DOBFormatFlag

and then just do Count(DISTINCT DOBFormatFlag)