Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
mario-sarkis
Creator II
Creator II

Script


Hey Guyz ,

I need Help here is my Question

i have a field for example

Renuwel Date

5/25/2015

4/31/2015

3/12/2015

i need to calculate the number of  Renuwel Date > today

count(Renuwel Date)>today

How can i write this in a set analysis

Thank you,

12 Replies
vijetas42
Specialist
Specialist

Hi,

You can write expression as If(Renuwel Date>today,count(Renuwel Date))

Thanks!

cesaraccardi
Specialist
Specialist

Hi,

First you have to make sure the date field is being loaded correctly, you can use Date#()  function to specify the date formatting that is coming from the data. Then on the expression a simple num(Today()) should work.

See image below,

Cesar

637128.png

MarcoWedel

Hi,

another solution could be:

=-Sum([KYC Renewal Date]>Today())

QlikCommunity_Thread_164990_Pic1.JPG

QlikCommunity_Thread_164990_Pic2.JPG

Although the already suggested set expression

{$<[KYC Renewal Date]={">$(=Today())"}>}

should have the better performance.

hope this helps

regards

Marco