Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Latest values only in ListBox

Hi all,

I am trying to show a list of the values from one column for the 'latest set' of data - as defined by a second column.

Here is some sample data :

DateFldSalesValueBG
2016-06-080G
2016-06-091A
2016-06-102A
2016-06-114B
2016-06-128B
2016-07-1716C
2016-07-1732D
2016-07-1764E
2016-07-20128A
2016-07-20256B
2016-07-20512E

What I need to show are the values from column 'BG' which correspond to the latest value for column DateFld.

I've currently got a List Box that shows all values of BG, but it is showing 'all' values.

I can process only the 'latest data' in a chart control by using set analysis expression - such as: {$<DateFld = {"$(=max(DateFld))"}>}

But if I use a chart control I can't see a way of only listing the dimension value (in my case values from column BG) - it seems that I always need to also show the results of an expression.

I can't seem to find an equivalent way of doing this in a list box. May be I need to use a chart control but make it appear to th euser just like a list - that they can then select from.

All ideas gratefully received.

Cheers,

Dave

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Try Expression in List Box

=If(DateFld = Max(TOTAL DateFld),BG)

View solution in original post

6 Replies
antoniotiman
Master III
Master III

Try Expression in List Box

=If(DateFld = Max(TOTAL DateFld),BG)

Not applicable
Author

Hi David

You can try this expression for list box

=if(DateFld=max( total DateFld),BG,null())

Regards

Ahmed

raju_insights
Partner - Creator III
Partner - Creator III

Hi Dave,

PFA

Sample.jpg

Anonymous
Not applicable
Author

Hi Antonio,

Brilliant! Thanks very much.

Cheers,

Dave

Anonymous
Not applicable
Author

Hi Mohd,

Thanks very much.

Cheers,

Dave

Not applicable
Author

Hi David,

I will explain you by step wise:

Step:1 --- Load data into Edit Script

Step : 2 --- Reload Data

Step: 3 ---  Create list box--> Properties -> You can see General Tab --> Field -> You can select Expression --> You can write below  Expression.

Step: 4-- =if(DateFld=max( total DateFld),BG,null())

Thanks

Nandu