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

Announcements
Data Works for AI is here - Join the discussion and enter to win a pair of Qlik kicks: Join the Conversation!
cancel
Showing results for 
Search instead for 
Did you mean: 
nihhalmca
Specialist II
Specialist II

Loading Variables - Script line error

Hi All,

I am trying to load variables from excel spread sheet by for loop however, getting script line error while loading.

Variable looks like vName = Num(Sum({<Type ={'A'}, Year = {$(=Max(Year))}>} Sales,'#,##0.0').

I think, getting error due to single quotations.

Could you please assist on this.


Thanks,

Nihhal.

Labels (1)
11 Replies
nihhalmca
Specialist II
Specialist II
Author

Thanks Miguel.

For second variable, it  would be

'Only({<Quarter={'&chr(36)&'(=min(Quarter,1))}>} QuartrandYear) &chr(13)&''(A)'''  - right?

Miguel_Angel_Baeyens
Support
Support

Looks about right, yes