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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue with set analysis expression

Hi,

Can anyone please let me know what's the error in this expression:

=sum({<[Report Date]={'>=$(vToDateMonthStart) <=$(vToDateMTD)'}>} [New Issuance])

vToDateMonthStart and vToDateMTD are variables.


vToDateMonthStart returns 11/1/2015

And vToDateMTD  returns 11/28/2015


Regards,

Sachin

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Have you tried with Double quotes instead of single quotes?

=Sum({<[Report Date]={">=$(vToDateMonthStart) <=$(vToDateMTD)"}>} [New Issuance])

or try this

=Sum({<[Report Date]={"$(='>=' & $(vToDateMonthStart) & '<=' & $(vToDateMTD)"}>} [New Issuance])

View solution in original post

5 Replies
sunny_talwar
MVP
MVP

Have you tried with Double quotes instead of single quotes?

=Sum({<[Report Date]={">=$(vToDateMonthStart) <=$(vToDateMTD)"}>} [New Issuance])

or try this

=Sum({<[Report Date]={"$(='>=' & $(vToDateMonthStart) & '<=' & $(vToDateMTD)"}>} [New Issuance])

Not applicable
Author

Hey Sunny,

Thank you.

=sum({<[Report Date]={'>=$(vToDateMonthStart) <=$(vToDateMTD)'}>} [New Issuance]) ---- worked

sunny_talwar
MVP
MVP

‌So your original expression worked?

Not applicable
Author

Yeah, I didn't understand what went wrong initially. I have been breaking my head since past 2 hrs and then it just worked.

Anyways thanks for the prompt and quick reply, Sir.

sunny_talwar
MVP
MVP

Hahahaha no problem . I would recommend marking your own answer as correct (as technically yours is the correct answer) as it might help some one else in the future.

Best,

Sunny