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: 
techvarun
Specialist II
Specialist II

Field as a Variable giving wrong result

Hi All,

 

I am loading a same piece of script Directly and as a Variable and i am getting different values for the sum expression.

 

Attached is the qvw and source data. Please check and Provide the solution.

Capture.PNG

 

Thanks

Varun

 

 

 

1 Solution

Accepted Solutions
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

you have to use [ ]

so Qlik will load the variable as field name, instead of a value

[$(vMonth1)]
,[$(vMonth2)]

View solution in original post

1 Reply
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

you have to use [ ]

so Qlik will load the variable as field name, instead of a value

[$(vMonth1)]
,[$(vMonth2)]