Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
bskemp01
Contributor III
Contributor III

Date Formatting on Combo Chart

Ok folks i need some help if possible. I am looking for a way to format Dates as Month & Day only. i.e. - (Jan-1, Jan-2, etc). I have yet to find a forum post about this so any help would be appreciated. I have tried this:

Date(MakeDate(num(SFINVY)+2000,left(num(SFINVM,'0000'),2),right(num(SFINVM,'0000'),2)),'MM-DD') as DayOfYear

*SFINVY is a two digit year from the database.

*SFINVM is the month and day (Jan 21 = '121') from the database.

and as you can see here the value is being formatted correctly:

bskemp01_0-1708523747921.png

 

 

but the format still comes out as 1/1/2024 on the chart. (See screenshot below)

The Reason: the reason i need the dates in this format is because i have a combo chart that i have multiple lines on, some for current year and some for previous and i need them to overlap based on the day of the year(for any year).

 

What i am getting:

bskemp01_0-1708523203412.png


What i need:

bskemp01_1-1708523221673.png

 

11 Replies
theoat
Partner - Creator III
Partner - Creator III

Change the line SET DateFormat like this :
SET DateFormat = 'MMM-D';

Kind regards,
Théo ATRAGIE.

bskemp01
Contributor III
Contributor III
Author

this changes the formatting correctly. finally have something that works. thank you!!