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

How to choose format of date in Listbox ?

Hello all,

I need your help about date format in listbox. It sounds easy but ...

I have a field "date_N" and I want to display this field in my listbox but i want to specify format according the value.

I want to display format DD/MM/YYYY for last 3 months and current month  but only MM/YYYY for other value.

My expression works but it doesn't display a list...

Here is my expression (NB: actually i don't use variable because i am trying to test) :

if(num(month(date_N))>=num(Month(Max({1}date_N)))-3 and num(month(date_N)<=num(Month(Max({1}date_N))),date_N, date(date_N,'MM/YYYY'))

Thanks in advance for your help !

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Something like this?

Choose listbox format thread279573.jpg

View solution in original post

2 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Something like this?

Choose listbox format thread279573.jpg

Anonymous
Not applicable
Author

Yes !

Thank you very much. the expression is clearer !