Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can two time dimensions be on the same x axis?

Hello,

I am trying to show positive and negative integers for each month as per the below chart.

Chart.png

 

However, I have two separate time dimensions in my data. The way the data exists in my database is:

  • [Gift Date] - which I want in the master calendar in all cases
  • [Gift Status Date] - which I want when the [Gift Status] is Cancelled (all records will have a status date but unless it's cancelled I want to disregard it

So for some entries in my database it should pull through two dates, and for some only one (dependent on the status).

Currently I am copying two extracts into Excel in a simplified format depending on Gift Status, but I'd like to link it to SQL, hence the need to work around the two different fields.

Load Script.png

I'm having to load the two dates using different field names- what is the best way to either link both to the master calendar (so that there is just one time axis on the chart) or otherwise get Qlikview to recognise them as the same thing? Basically I want to see:

  • in June 2016 (based on Gift Date) what is the count of ID
  • in June 2016 (based on Gift Status Date) what is the count of ID where the status is Cancelled (*-1 so it is negative)

And have both against June 2016 on the x axis. The set analysis I'm fine with, I just can't find any way to link both date fields together as a single dimension.

Any help appreciated, and if there's anything I can do to clarify the problem please let me know!

Thanks in advance,

Hannah

1 Solution

Accepted Solutions
swuehl
MVP
MVP

2 Replies
swuehl
MVP
MVP

Hi Hannah,

I think you can use a canonical date for this:

Canonical Date

Tutorial - Using Common Date Dimensions and Shared Calendars

Not applicable
Author

Thank you so much Stefan, I have spent a frustrating few hours trying to figure that out!