Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
punitpopli
Specialist
Specialist

Inputsum() functionality

Hi,

I came across Inputsum() and had collected details on the same via Qlik Help, community link and a blog‌, but still curious to know the exact functionality of the function in terms of storing the user entered values.

For e.g. :

Prerequisites of InputSum() : We have to define these fields in the script using InputField command and syntax is as below(refer community link above) :

INPUTFIELD Budget1, Budget2, Budget3, Budget4, Budget5, Budget6, Budget7;

Table:

LOAD * Inline [

Dim1, Dim2, Budget1, Budget2, Budget3, Budget4, Budget5, Budget6, Budget7

A, AA, 0, 0, 0, 0, 0, 0, 0

A, CC, 0, 0, 0, 0, 0, 0, 0

B, AA, 0, 0, 0, 0, 0, 0, 0

B, CC, 0, 0, 0, 0, 0, 0, 0

];

Lets consider the Capital Allocation tab on Credit Risk Analysis demo app from Qlik where we have pivot table and the values of PD column can be changed i.e. user input.

Below are certain doubts on the implementation/use of Inputsum()

  1. Apart from defining the fields for Inputsum() in scripts, do we have to make any other changes?
  2. Where the user input value get saved (according to my understanding it get saved in RAM)?
  3. Will these values be in RAM till the server get reboot or my session expires?

Please share your valuable comments on above and let me know if anything which I had missed to mention here

Regards,

Punit

3 Replies
tresesco
MVP
MVP

I guess,

  1. Apart from defining the fields for Inputsum() in scripts, do we have to make any other changes? - No
  2. Where the user input value get saved (according to my understanding it get saved in RAM)? - RAM
  3. Will these values be in RAM till the server get reboot or my session expires? - Since this is user-application specific, the values should be be cleared off once the session is over.
Anil_Babu_Samineni

Tresesco, I do have one doubt. Still confusing here

With InputField

Table:

LOAD * Inline [

Dim1, Dim2, Budget1, Budget2, Budget3, Budget4, Budget5, Budget6, Budget7

A, AA, 0, 0, 0, 0, 0, 0, 0

A, CC, 0, 0, 0, 0, 0, 0, 0

B, AA, 0, 0, 0, 0, 0, 0, 0

B, CC, 0, 0, 0, 0, 0, 0, 0

];

We will get same o/p if we are not using the inputfield, what is the main use of this in Real time. Not the theoritical.please help me

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
punitpopli
Specialist
Specialist
Author

Hi

The script you mention had only the default values and when we use Distribution modes i.e. +,*,=,/ the values of these Budget fields will get changed.

Yes, will get same output if we don't mention the budget fields as inputfield and Inputsum() will also not work for user input values and will get an error as below :

community.png

For e.g. : The sheet i had shared above from Qlik demo where PD column has 6% against value 1, 8% against value 2 and so on.

As the expression is defined using Inputsum() it will accept the user values and data across the dashboard will get changed and data i.e. user input values get flushed when session expires(as per Tresesco, in above)


Hope this helps