Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variable Set Analysis

I'm trying to pass a variable into my set analysis expression with no luck. This is what I'm going for:

Sum( '$(chatDate1)' [Sales])

Where my variable chatDate1 is:

'{$<dateFinal={">=$(=minDate)<$(=maxDate)"}>}'

I'm trying to keep this dynamic as I will eventually have many options that the user can select, so pasting this string into my expression doesn't seem like an efficient option.

My chart ends up not displaying any data, any suggestions?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

in addition to Jaime's reply, the outer quotes in your variable expression are not necessary and you may have just included them in the post. so you don't need the single quotes in both the expressions.

View solution in original post

5 Replies
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

I think it may be that you're already including single quotes in the variable,

maybe like this:

Sum( $(chatDate1) [Sales])


it will underline everything after the name of the variable, however it is just a bug of the sintax checker and it should work as expected,


regards

Not applicable
Author

Nope, it still doesn't show any data

It doesn't work if I do this either:

Sum( chatDate1 [Sales])

Without the dollar sign expansion... I honestly have no idea what I could do differently.

Anonymous
Not applicable
Author

in addition to Jaime's reply, the outer quotes in your variable expression are not necessary and you may have just included them in the post. so you don't need the single quotes in both the expressions.

Not applicable
Author

Thanks, that fixed it. I thought I had tried all possible combinations of using quotes, dollar sign expansion, etc... but I guess I missed one

Anonymous
Not applicable
Author

no problem...been there