Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am new to Qlikview. I have created a bar chart, and displaying Total Values (Count) for a month.
Problem: How do I sort X-axis date values in ascending order
Subset of Data:
Jun-15
Dec-16
Dec-16
Dec-16
Dec-16
Dec-16
Dec-16
Dec-15
Dec-15
Dec-15
Dec-15
Dec-16
Sep-15
Dec-16
Dec-16
Dec-16
Dec-15
Dec-15
Dec-15
Dec-15
Dec-15
Dec-16
Dec-16
Dec-16
Dec-16
Dec-16
Dec-16
Dec-15
Dec-15
Dec-15
Dec-16
Dec-15
Dec-16
Nov-14
Dec-16
Dec-16
Dec-16
If Final NGI Target Date is not date, then use Date#() as below
Add this expr to sort tab
=Date(X_Axis_Date_field,'MMM-YY')
Sid,
Is this date field a true date field in your script?
A date field will be ordered ascending.
Go to Properties>Sort>State, then choose Ascending.
Best,
T
Michiel,
I loaded data from the excel file as is. How can I make it a true date field in my script.
Thanks,
Sid
See screenshot
Is that correct? as I am not getting the desired output
My Column name in Excel is Formatted Final NGI Target Date
change your load script like:
LOAD Date#(month, 'MMM-YY') as month,
...
FROM yourexcelfile;
Tibor,
Chart is not sorting on State.
Thanks,
Sid
It isn't beacuse you use date as expression, not as dimension. Try using it as dimension, then you will be able to sort it.
If Final NGI Target Date is not date, then use Date#() as below