Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2022, LIVE in Denver CO., May 16-19, 2022. REGISTER NOW TO RECEIVE EARLY BIRD PRICING
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
Partner

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
Partner

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