Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
P_Kale
Creator II
Creator II

Set Expression Not Working Start Date and End Date

Hi,

I have created 2 variables to figure out last month start date and End Date. Both this variables are working fine at script level but in Expression these variables are not working. Though expression is not throwing syntax error at front end I am not getting any value. Below given is the expression. I have attached screen-shot as well.

Sum({<PAYOUT_DATE={'>=$(vStartDate)<=$(vEndDate)'},CONSIDER_NOT_CONSIDER={"CONSIDER"}>} PAYOUT_AMT)/10000000

Can you pl help to resolve issue.

Thanks in advance.

@sunny_talwar 

@Anil_Babu_Samineni 

@swuehl 

 

Labels (1)
2 Solutions

Accepted Solutions
P_Kale
Creator II
Creator II
Author

Hi,

Double quotes resolved the issue for me

Sum({<PAYOUT_DATE={">=$(vStartDate)<=$(vEndDate)"},CONSIDER_NOT_CONSIDER={"CONSIDER"}>} PAYOUT_AMT)/10000000

Thanks

View solution in original post

marcus_sommer

The syntax isn't quite right - try it in this way:

... PAYOUT_DATE={">='$(vStartDate)'<=$(vEndDate)'"},CONSIDER_NOT_CONSIDER={'CONSIDER'} ...

Further the date-format from the field and the variables must be equally.

View solution in original post

3 Replies
P_Kale
Creator II
Creator II
Author

Hi,

Double quotes resolved the issue for me

Sum({<PAYOUT_DATE={">=$(vStartDate)<=$(vEndDate)"},CONSIDER_NOT_CONSIDER={"CONSIDER"}>} PAYOUT_AMT)/10000000

Thanks

marcus_sommer

The syntax isn't quite right - try it in this way:

... PAYOUT_DATE={">='$(vStartDate)'<=$(vEndDate)'"},CONSIDER_NOT_CONSIDER={'CONSIDER'} ...

Further the date-format from the field and the variables must be equally.

P_Kale
Creator II
Creator II
Author

Thanks Marcus_sommer,

Got it.