Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello!
I have a bar chart where the X axis uses the field PERIOD which has the following date format: YYYY/MMM
For example:
I want to sort the X axis chronologically (first order by year and then by month: january, february, march...), but I couldn't do it so far.
In order to build the PERIOD field, I used: YEAR (DATE) & '/' & MONTH (DATE).
How could I do this?
Thank you!!!
in the sort expression you provide this and say Ascending.
Date#(PERIOD,'YYYY/MMM')
in the sort expression you provide this and say Ascending.
Date#(PERIOD,'YYYY/MMM')
Use monthname(Date) which will give you year month in numeric format.
Then it will easily sort out.
moreover you can also use
OR you can also use
date#(makedate(year(Date),month(Date),1),'YYYY/MMM')
Nitin, Your second expression should be using Date() instead of Date#().
Right....