Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

use inputfield of previous month

i have this situation:

inputfield A

LOAD * INLINE [

    YYYY,M, A

    2012,2, 20

    2012,3, 30

    2012,4, 40

    2012,5, 50

];

i need to use in a formula the value of the inputfiled A of the previous month compared to the month in column

example table :

month          inputvalue     value

3                 30               20

4                 40               30

5                 50               40

if I change the value of the inputfield for month 4 to 111 i need to see this value in the column of month 5

if I select a month the formula must work, so i cant use before or previous functions

in the attachment a qv doc that recreate the example

is it even possible?, thanks.

d.

6 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try:

inputfield A

LOAD *, previous(A) as PreviousA;

LOAD * INLINE [

    YYYY,M, A

    2012,2, 20

    2012,3, 30

    2012,4, 40

    2012,5, 50

];


talk is cheap, supply exceeds demand
Not applicable
Author

it's an inputfield, i need to change the value in the presentation and use the changed value.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can try an set analysis expression.

=sum({<M={'$(=only(M)-1)'}>} campoInput)


talk is cheap, supply exceeds demand
Not applicable
Author

thank you again but i need to have the field M as dimension in my table and

set analisys does not work if you have the field you are selecting in set analisysy as dimension of the table.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The set analysis expression works in a text box. See attached qvw.


talk is cheap, supply exceeds demand
Not applicable
Author

yes i know, but i need it in the table