Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
rathnam_qv
Creator
Creator

Arranging Months

Hi all,

i have months from Jan,Feb....Dec.

but i want to display from Nov,Dec,Jan,Feb....Sep,Oct

is it possible if so,please help me

Thanks in advance!!!

Smiley

3 Replies
ariel_klien
Specialist
Specialist

Hi,

you can write in your script an inline table like this:

LOAD * INLINE [

    Month, month_num

    Nov, 1

    Dec, 2

    Jan, 3

    Feb, 4

    Mar, 5

    Apr, 6

    May, 7

    Jun, 8

    Jul, 9

    Aug, 10

    Sep, 11

    Oct, 12

];

and then sort it by month_num

BR

Ariel

fernando_tonial
Employee
Employee

Hi,

You can try this:


Map_Month

Mapping

LOAD * INLINE [

    Month, month_num

    Nov, 1

    Dec, 2

    Jan, 3

    Feb, 4

    Mar, 5

    Apr, 6

    May, 7

    Jun, 8

    Jul, 9

    Aug, 10

    Sep, 11

    Oct, 12

];


Data:

Load

Dual(Month, ApplyMap('Map_Month',Month) as Month

From Table;


This form will be ordering as you set the mapping table.


Best Regards.

Tonial.

Don't Worry, be Qlik.
jagan
Luminary Alumni
Luminary Alumni

Hi Rathnam,

Arrive month field in the script like this

Load

*,

Dual(MonthNameDimension, Match(MonthNameDimension, 'Nov', 'Dec', 'Jan', ............'Oct')) AS Month

FROM DataSource;

Hope this helps you.

Regards,

Jagan.