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

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

Date function

Hi,

I need to condier the data after 1/12/14.

So i have given his in the expression as

CDTS_DATE is in the format of MM/DD/YYY.

iTS NOT TAKING THE PERIOD CORRECTLY.Please let me know whats wrong in the below expression


=IF(NUM(CDTS_Date) > NUM(DATE(MAKEDATE(2014,01,12),'MM/DD/YYYY')),$(vCFS)

-Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'},CALL_TYPE={'SPECIAL'},CALL_SUB_TYPE={'OIL'}>}EID)-

Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'},CALL_TYPE={'STATION'}>}EID))

Thanks,

1 Solution

Accepted Solutions
sunny_talwar

Do you have CDTS_Date as your dimension? If not, then try using set analysis or if statement within the Count function

Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'},CALL_TYPE={'SPECIAL'},CALL_SUB_TYPE={'OIL'}>} If(CDTS_Date > MakeDate(2014,1,12), EID))

or

Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'},CALL_TYPE={'SPECIAL'},CALL_SUB_TYPE={'OIL'}, CDTS_Date = {"$(='>' &  Date(MakeDate(2014,1,12), 'MM/DD/YYYY'))"}>} EID)

View solution in original post

5 Replies
sunny_talwar

How about this:

=If(CDTS_Date > MakeDate(2014,1,12),

$(vCFS)

- Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'},CALL_TYPE={'SPECIAL'},CALL_SUB_TYPE={'OIL'}>}EID)

- Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'},CALL_TYPE={'STATION'}>}EID))

bhavvibudagam
Creator II
Creator II
Author

Hi Sunny,

Not getting.Please find the attachment of cdts date format.

Have taken the CDTS_DATE Field from CDTS.

sunny_talwar

Do you have CDTS_Date as your dimension? If not, then try using set analysis or if statement within the Count function

Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'},CALL_TYPE={'SPECIAL'},CALL_SUB_TYPE={'OIL'}>} If(CDTS_Date > MakeDate(2014,1,12), EID))

or

Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'},CALL_TYPE={'SPECIAL'},CALL_SUB_TYPE={'OIL'}, CDTS_Date = {"$(='>' &  Date(MakeDate(2014,1,12), 'MM/DD/YYYY'))"}>} EID)

bhavvibudagam
Creator II
Creator II
Author

Yes working fine Thank you

sunny_talwar

Awesome