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

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
kunkumnaveen
Specialist
Specialist

how to write > expression

Hello All,

i am trying to count only those IntermID whose VALIDTO  date has to be greater than today,i tried below expression ,i am getting 0 as o/p,anything  wrong with my expression.

count(DISTINCT{<VALIDTO = {'>$(=Date(today()))'}>}IntermID)



thanks

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this

count(DISTINCT{<VALIDTO = {">$(=Date(today(),'DD-MM-YYYY'))"}>}IntermID)

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

4 Replies
kunkumnaveen
Specialist
Specialist
Author

Add on to above requirement

Valid date formate

Date(VALIDTO,'DD-MM-YYYY') as  VALIDTO, 

Anil_Babu_Samineni

May be this

count(DISTINCT{<VALIDTO = {">$(=Date(today(),'DD-MM-YYYY'))"}>}IntermID)

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

Or just use Date() function in the script while creating VALIDTO field like this

Script

SET DateFormat='DD-MM-YYYY';

Table:

LOAD ....

    Date(VALIDTO) as  VALIDTO,

...

FROM ....

and then this

Count(DISTINCT{<VALIDTO = {">$(=Date(Today()))"}>}IntermID)

calvin_wee
Creator
Creator

I have similar issue using the following. Any advise?

COUNT({<[Received Date]={">$(=DATE(WeekStart(today()),'DD-MM-YYYY'))"}>} [Request No])