Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sweety0912
Contributor II
Contributor II

Show year,Month and day in X-axis

Hi,

I wanted to show X-axis with Year,Month and Day as shown in the attached picture. Please find the attached image and let me know how to achieve this.

Thanks!

Sweety

3 Replies
Anil_Babu_Samineni

Try this approach Exclude Zero bars

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
balabhaskarqlik

May be like this:

The script:

LOAD *
,month(YearMonth) as Month
,year(YearMonth) as Year
;
LOAD
date(addmonths(makedate(2009,1,1),floor(rand()*24)),'YYYY MMM') as YearMonth
,ceil(rand()*10) as Amount
AUTOGENERATE 100
;

The line chart:

dimension=aggr(date(YearMonth,if(Month=min(total <Year> Month),'YYYY MMM','          MMM')),Year,YearMonth)
expression=sum(Amount)


Check this link:

How to have 2 fields in the X axis of a graph

pooja_prabhu_n
Creator III
Creator III

Hi,

You can try like this

dimension= Month& chr(10) & Year

3.PNG