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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
varunreddy
Creator III
Creator III

Is there a way to sort input box


Hi Guys,

I created a input box and created list of values using field called Date. I want to sort Date field.

Expression Used:

Concat(Distinct Date, ',')

I have dates in this format:

7/31/2015

8/14/2015

8/7/2015.

The format I am looking for:

7/31/2015

8/7/2015

8/14/2015

Is there any way that I can sort listed values?

Can anyone please help me.

Thanks in advance

Regards,

Varun. K

7 Replies
Nicole-Smith

Add a sort value to your concat() so that it sorts by the number instead of by text (default):

=Concat(Distinct Date, ',', Date)

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Take a look at the Help for the Concat() function. You will see that there is an optional sort weight parameter.

Concat(Distinct Date, ',', Date)


-Rob

http://masterssummit.com

http://qlikviewcookbook.com

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Nicole, I think the default sort for concat() is Load Order.

-Rob

Nicole-Smith

When I test it, it doesn't do it in load order for me:

LOAD * INLINE [

    Date

    7/31/2015

    8/7/2015

    8/14/2015

];

=Concat(Distinct Date, ',') returns 7/31/2015,8/14/2015,8/7/2015

So I think it is sorting it by text...

varunreddy
Creator III
Creator III
Author

Thank You Nicole

Regards,

Varun. K

varunreddy
Creator III
Creator III
Author

Thank You Nicole

Regards,

Varun. K

varunreddy
Creator III
Creator III
Author

Thank You Rob

Regards,

Varun. K