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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
shirleyc40
Creator
Creator

Two linked tables with their own date field, how to control both

Hi!

I have an app where I have two tables, one called events and one called quotes. They each have their own date field and both tables are linked by a field called salesnumber. On one sheet, I have a date picker that controls the event date, and two bar charts.  One ;chart pulls data from the events table (call it E) and the other chart pulls data from the quote table (call it Q). E has drill down dimension of the event date week to the date and Q has a drill down of the quote data week to date.

Is it possible so that when I change the selection for event date (say I pick week 32) it also shows changes Q's dates to show week 32 and vice versa. I can't really provide an example app because I pull data from SQL.

Labels (1)
2 Replies
sunny_talwar

Check this link @shirleyc40 

Canonical Date 

shirleyc40
Creator
Creator
Author

@sunny_talwar I'm not understanding how it works exactly. 

I have data that looks like this: 

EventTable:

EventNameSystemIdEventQuoteNumbereventDateTime
DsProWebInitialQuoteDSProWeb240137309/10/2020
DsProWebInitialQuoteDSProWeb240137319/10/2020
DsProWebInitialQuoteDSProWeb89811808/31/2020
RatingRequestLifeWeb24178/12/2020
RatingRequestLifeWeb24248/13/2020
RatingRequestLifeWeb28118/3/2020
RatingRequestLifeWeb28118/4/2020

 

QuoteTable: 

QuoteIdSystemIdStatusquote_date
2417LifeWebAccepted8/13/2020
2424LifeWebAccepted8/20/2020
2811LifeWebAccepted8/9/2020

 

And I'm trying to have one chart that shows the date and number of distinct rating requests. 

Another chart that shows the date and the number accepted. I have these two tables linked by quoteid and eventquotenumber (renamed them to QuoteNum). I tried using this code to make the canonical date:

DateBridge:
Load
QuoteNum,
quote_date as CanonicalDate,
'Quote' as DateType
Resident QuoteInfo;

Load
QuoteNum,
eventDateTime as CanonicalDate,
'Event' as DateType
Resident TestEvents;

But when I do count({<EventName={'RatingRequest'}, DateType  = {'Event'} >} distinct EventQuoteNumber) 

 it gives a lower count