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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sorting issue

Hi Everybody,

I am facing one sorting issue in month names.

i want it in calendar wise sorting ie: jan feb march april etc.sorting of month.png

Attached is the screen shot for the same.

Please assist.

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

Then you should define your month using the Month() function. If you have the month names in a field, you can do this by defining your field by

     Month(Date#(MonthName,'MMMM')) as Month

HIC

View solution in original post

7 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use DUAL function to sort ...

giakoum
Partner - Master II
Partner - Master II

dual or make sure the load order is the one required

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I expect that your Month field contains only text values and not numeric values. Perhaps you can create that field so it contains dual values that have both a numeric value and a textual display format. Or you can try sorting by an expression like match({1} Month, 'Januari', 'Februari', ...etc.., 'December')


talk is cheap, supply exceeds demand
avinashelite

Hi Gaurav,

while creating the month , have both the format created i.e. text and number ....

then use dual function with that , this will solve the issue.

EG:

Load dual(month_name,month_number) as month_name

;

hic
Former Employee
Former Employee

Then you should define your month using the Month() function. If you have the month names in a field, you can do this by defining your field by

     Month(Date#(MonthName,'MMMM')) as Month

HIC

Anonymous
Not applicable
Author

Hi Avinash,

cloud't get you.

Please provide some examples.

Anonymous
Not applicable
Author

Thanks Henric,

Now i got it

Cheers !!