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: 
Not applicable

Date Range in Set Expressions

I have a variable defined

SET vPE_date = date#('31/Oct/2013');

Now I am trying to use it in set expression and I am trying as follows:

Sum({$<ISSUEDT= {'<= $(vPE_date)'}>} NET_CLAIM_PAID)

However this is not working.

Can someone guide me why.

Thanks.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Try to Define Your variable as below

Let vPE_date = Date(Date#('31/Oct/2013','DD/MMM/YYYY'));

Use

Sum({$<ISSUEDT= {"<=$(=vPE_date)"}>} NET_CLAIM_PAID)

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Try to Define Your variable as below

Let vPE_date = Date(Date#('31/Oct/2013','DD/MMM/YYYY'));

Use

Sum({$<ISSUEDT= {"<=$(=vPE_date)"}>} NET_CLAIM_PAID)

its_anandrjs
Champion III
Champion III

You have to make change in script it is not SET it would be LET

LET vPE_date = Date(Date#('31/Oct/2013','DD/MMM/YYYY'),'DD/MM/YYYY');


and in expression


Sum({$<ISSUEDT= {"<= $(vPE_date)"}>} NET_CLAIM_PAID)



sushil353
Master II
Master II

Hi,

Try below:

LET vPE_date = Date(date#('31/Oct/2013').'DD/MMM/YYYY');

Sum({$<ISSUEDT= {"<= $(vPE_date)"}>} NET_CLAIM_PAID)


Make sure that ISSEDT should have DD/MMM/YYYY format.. if not then change the format of variable vPE_date accordingly


HTH

Sushil

Not applicable
Author

Thanks it worked. Don't know why but it worked