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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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.

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

Looks about right, yes