Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Fig1
Contributor III
Contributor III

Create one activity date - from three data sources

In my load I am linking to three different data sources.  Each datasource contains a different type of activity.  Each datasource as its own date fields.  I would like to create a filter on 'activity date' that when selected it will show data from each of three datasources for the time period selected.

Eg. 1. Outpatient Activity (appointment date) 2. Emergency Activity (presentation date) 3.Theatre activity (operation date)

(all linked via a primary key).  Wishlist: select May 2020 from filter and activity from each of the three datasources will display for this period.

1 Reply
Vegar
MVP
MVP

Try creating a common master calendar with transaction primary key as the key field that links to all tables.

LOAD  [ID] ,  [Appointment date] as DATE, 'Appointment' as [Date type] RESIDENT [Outpatient Activity];

CONCATENATE LOAD ID, [Presentation date] as Date, 'Presentation' as [Date type] RESIDENT [Emergency Activity];

CONCATENATE LOAD ID, [Operation date] as Date, 'Operation' as [Date type]  RESIDENT [Theatre Activity];

I hope that this could be of help. 

/Vegar