Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ivandrago
Creator II
Creator II

Sort Chart not working

Hi,

I have the attached Document, I have a issue with the Sortkey not putting the correct numbers, I want it to be like the below

DateMonth, SortKey

01-JUN-2015, 1

01-JUL-2015, 2

01-AUG-2015, 3

01-SEP-2015, 4

01-OCT-2015, 5

01-NOV-2015, 6


Also what format does the SortKey need to be for it to work in the Expression?   .

Thanks

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

You can sort it without the additional table.. i.e. sort key. Check enclosed file..

View solution in original post

2 Replies
MK_QSL
MVP
MVP

You can sort it without the additional table.. i.e. sort key. Check enclosed file..

maxgro
MVP
MVP



Fact:

LOAD ID, Date(Date#(DateMonth, 'DD-MMM-YYYY'), 'DD-MMM-YYYY') as DateMonth, Amount, Manufacturer, Type, Ver, Pick

INLINE [

    ID, DateMonth, Amount, Manufacturer, Type, Ver, Pick

    1, 01-JUN-2015, 500, B, OFF, LIVE, JS,

     .......................

    18, 01-NOV-2015, 300, B, ON, LIVE, JT

];

Concatenate

LOAD ID, Date(Date#(DateMonth, 'DD-MMM-YYYY'), 'DD-MMM-YYYY') as DateMonth, Amount, Manufacturer, Type, Ver, Pick  INLINE [

  ID, DateMonth, Amount, Manufacturer, Type, Ver, Pick

    1, 01-JUN-2015, 500, B, OFF, ARCHIVE, JS,

    ..................

    18, 01-NOV-2015, 300, B, ON, ARCHIVE, JT

];