Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Partner
Partner

Re: Create one activity date - from three data sources

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

 

Plees ekskuse my Swenglish and or Norweglish spelling misstakes