Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Abhi_WP
Contributor III
Contributor III

Merging SQL query output and excel output

Hello everyone, 

I am trying to create a report in qlik sense. The source for this report is mix of excel and sql query output.  Let me give the example.

SQL Query Output

Work Order NoQuarterDelivery ArmProgram Name
435Q1Service DeskDesktop Installation
436Q2FacilitiesStaircase Cleaning
437Q2FacilitiesCar park Marking

 

Excel Data

Work Order NoQuarterDelivery ArmLocation
435Q2Service DeskHead Office
436Q2FacilitiesHead Office

 

The excel list is static and gets locked at the start of the year.  The sql query I am writing fetches the latest record from the database.

I have to write the query in such a way that the Quarter and Delivery Arm for the Work Order available in Excel should come from excel sheet but the other fields should be populated from sql query. Also, Sql data will have additional work orders. The Quarter and Delivery Arm for the additional work orders should be populated from sql query. In the above example, I am expecting this ouput.

Work Order NoQuarterDelivery ArmLocationProgram Name
435Q2Service DeskHead OfficeDesktop Installation
436Q2FacilitiesHead OfficeStaircase Cleaning
437Q2Facilities Car park Marking

 

Any help in this topic will be highly appreciated. Thanks

1 Reply
lironbaram
Partner - Master III
Partner - Master III

HI 

just load the excel table 

and than join  the sql table 

so something like this 

load * From Excel

join 

load * from sql