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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

get previously selected value of listbox

Hi,

I have a listbox with values One, Two, Three.

If i select One, then it will be the current selection.

After that if i select Two, then One will be the Previous selection.

I want to get the previously selected value of a listbox in a variable or in text object.

ie., One as the value.

How can we get that?

I tried like

Only({$1} FieldName)

It is giving me the currently selected value, but i want the previously selected value of a listbox.

1 Solution

Accepted Solutions
Not applicable
Author

this works fine:

When you first make the chart it will show all three- because there is no previous.

View solution in original post

6 Replies
Not applicable
Author

try this:

LOAD * INLINE [

Number, Amount

1, 40

2,50

3,60

];

Expression:

=sum({$1} Amount)

Not applicable
Author

Hi Thomas,

Mine is a text field. so it is giving me the selected value.

It is not giving me the previous value.

I tried like this

Load * inline [

Field1,Field2

1,One

2,Two

3,Three

];

In a text object, i tried Sum({$1} Field1)

It is giving me 1, if i select One, 2 when i select Two

Not applicable
Author

this works fine:

When you first make the chart it will show all three- because there is no previous.

Not applicable
Author

Hi thomas,

The file which you gave, its working fine.

but the same object i copied to my file, it is not working.

I wonder, how it is happening?

Not applicable
Author

maybe because it still has a reference to my document. Create by yourself then you are sure that it works

Not applicable
Author

Hi thomas,

I tested my application.

It works only when few tables are loaded from QVD and this inline table.

I have around 15 tables from QVD. If i load all the tables and with this inline table, it is not working.

What kind of issue is this?

This inline is not linked to any other table.