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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
wcilliers
Partner Ambassador
Partner Ambassador

Set Analysis inside calculated Variable

Hi Experts,

I am using a variable to store some expressions which contains set analysis. Herewith an example:


SET vGrossSales = =Sum({<TypeParent = {'Sales'}>}Amount);


When I display this variable by using vGrossSales (with / without dollar expansion), it works fine. However, If I add Months as an example to the dimensions, it adds them together for all months selected, and doesn't display the month sales individually.


I thought that it might be to do with the fact that the variable starts with =Sum and not just Sum. But that doesn't seem to work. I have also tried LET, but to no avail.

As mentioned, it is working fine, although I just want to be able to calculated the expression 'on the fly' by different dimensions.

Hope all makes sense.

Thanks,

Wynand

0 Replies