Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show Most Latest Month in List box ?

Hi Friends,

I am new to qlikview.

I have below issue.

I have data for all the month including most latest month in the qvd.

I have field - Report Month which contains below value.

Example -

Report Month

Jan-2014

Feb-2014

Mar-2014

Apr-2014

Apr-2014 is the most latest month in the values of Report Month.

I wnat to show only Apr-2014 in the List box.

how can we show that ?

Thanks!

3 Replies
Anonymous
Not applicable
Author

use Expression in the list box

and in expression tab use

= maxstring (Report Month)

Hope it helps

Sri1

MK_QSL
MVP
MVP

Define your Month field as below in your script...

Load

     Date#(Month,'MMM-YYYY') as Month

Inline

[

Month

Jan-2014

Feb-2014

Mar-2014

Apr-2014

];

Now use below expression in your list box

=IF(Month = Date(Max(TOTAL Month),'MMM-YYYY'), Month)

====================

UPDATE:

Or directly use below expression in your list box...

=IF(Month = Date(Max(TOTAL Date#(Month,'MMM-YYYY')),'MMM-YYYY'), Date#(Month,'MMM-YYYY'))

PrashantSangle

Hi,

Try,

MonthName(max(YourField))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂