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: 
Not applicable

script line error

Hi,

In my script I have a variable


Let Coverage = $(Coverage) + (7 * $(Rest)/Peek('Demand2',-1,t2));
Let CV = $(Coverage);
[\ncode]
CV gives values like 8,4 or 1,4 or 4,9
At the point of Let CV I get the values but with an error as follows
error loading image
Though the values are shown here in the window correctly I get for 1,4->1 and for 8,4->8 and for 4,9->4
Any help will be appreciated.
Thanks
Sravan
</body>
1 Solution

Accepted Solutions
Not applicable
Author

I played for one hour with different things and once posted I got the answer


num('$(CV)', '#.##0,00')


this works and gives the correct answer.

and also Let CV = Coverage and not $(Coverage) and this is problem for the script line error.

View solution in original post

1 Reply
Not applicable
Author

I played for one hour with different things and once posted I got the answer


num('$(CV)', '#.##0,00')


this works and gives the correct answer.

and also Let CV = Coverage and not $(Coverage) and this is problem for the script line error.