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

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Expression not Working

Hi All,

I'm trying to create a Set Analysis expression in the edit script using a variable as shown below:

SET vRevenue = "Sum({$<FiscalYear = {$(=max(FiscalYear))} >}Revenue)";

When i access the vRevenue variable  in the chart,i'm getting an internal error as shown below:

Sum({$<FiscalYear = {'(internal error)'} >}Revenue)

The same is working fine when i create a variable in the variable overview and i want to create it in the edit script. Please suggest that how to overcome this error.

Thanks in Advance.

Regards,

Desmortes.

2 Replies
Sokkorn
Master
Master

Hi Desmortes,

Did you try this yet: =$(vRevenue)

Regards,

Sokkorn

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: LET vRevenue = 'Sum({$<FiscalYear = {$' & '(=max(FiscalYear))} >}Revenue)';

Or this:

SET vRevenue = Sum({$<FiscalYear = {@(=max(FiscalYear))} >}Revenue);

LET vRevenue = replace('$(vRevenue)','@','$');


talk is cheap, supply exceeds demand