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: 
Uma7
Contributor III
Contributor III

Concatenated Field Sorting

Hi,
i have 2 string fields year and month which i concatenated to create year-month field for graphs.
I need to sort in ascending order to show in graph .

How to do this?
Can anyone help me?
Thanks in advance!

Labels (1)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Sort by expression: =Date#(year&month, 'YYYYMMM')

View solution in original post

5 Replies
SunilChauhan
Champion II
Champion II

go to Sorting  by expression

and Use below

 Yearfield&'-'&num(Monthfield)  or 

 

 Yearfield&num(Monthfield)

Sunil Chauhan
tresesco
MVP
MVP

Sort by expression: =Date#(year&month, 'YYYYMMM')

BrunPierre
Partner - Master II
Partner - Master II

 Use in the sort expression.

=Floor(YearMonthField)

tresesco
MVP
MVP

@Uma7 , it's good that you appreciate responses by 'Like'ing it. However, it would also be nice for fellow comm visitors to know which solution(s) worked for this problem. Please mark the 'correct' that works for you.

Uma7
Contributor III
Contributor III
Author

will accept the one which works in my use case working on it