Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

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