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

inputsum not working

Hi

I have the following expression providing me with the forecast KG value:

Sum({$ <Forecast.ForecastType = {"KG"}, Forecast.ForecastVersion = {"Current"}>}Forecast.Value)

In order for the Forecast to be amended via QV i was hoping to use the following coding (and a few variations) but this doesn't appear to work.

inputsum(Sum({$ <Forecast.ForecastType = {"KG"}, Forecast.ForecastVersion = {"Current"}>}Forecast.Value) )

Please can you let me know what I am doing wrong.

Thanks, Gareth

1 Solution

Accepted Solutions
tseebach
Partner - Creator III
Partner - Creator III

You need to cast the field as inputfield in the script.

Add

inputfield Forecat.Value

to your script. I'd however advise you to precalculate the value of the field in the script, since having a set declaration might give unwanted results.

View solution in original post

2 Replies
tseebach
Partner - Creator III
Partner - Creator III

You need to cast the field as inputfield in the script.

Add

inputfield Forecat.Value

to your script. I'd however advise you to precalculate the value of the field in the script, since having a set declaration might give unwanted results.

Not applicable
Author

Thanks