Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load Data based on previous load

I am fairly new to qlikview and I am trying to figure out the best way to tie data together.  I am attaching documentation to give a better understanding of what I am looking at:

I have a file called ad_prod_orders.

Here is the data that this file contains:

     Prod_Order     Oper       Mn_Hr         Ma_Hr    L_Costs      OH_Costs    Trans Date     cost_comp_OH  cost_comp_labr

 
1019143213.33330450.6775.66/18/2013231230
1019143427.69.2932.69156.138/29/2013231230
101914366.36670215.1536.018/29/2013231230
101914373.43333.4333116.0219.428/29/2013231230
101914301.9667066.4611.138/29/2013231230
101914313.43333.4333116.0219.428/29/2013231230
1019143818.10611.64102.358/29/2013231230
1019146150.666850.66681632.43573.659/23/2013261260
101914634.84.8154.6854.259/23/2013261260

So I load this table into qlikview.

I have another table called (ad_prod_hrs) that I need to connect to ad_prod_orders.

The table needs to be tied to prod_order and cost_comp_oh or cost_comp_labr

The ad_prod_hrs table will contain multiple rows for a prod_order_number with cost_comp.

For instance,

If the cost_comp in ad_prod_hrs is equal to cost_comp_OH or cost_comp_labr then we need all the records from ad_prod_hrs attached to that prod_order_number

What would be the best way to get this data connected?????

1 Reply
hic
Former Employee
Former Employee

Orders:

Load *, Prod_Order as OrderID From ad_prod_orders ;

BridgeTable:

Load distinct Prod_Order as OrderID, cost_comp_OH as CostID From ad_prod_orders ;

Load distinct Prod_Order as OrderID, cost_comp_labr as CostID From ad_prod_orders ;

Hours:

Load *, cost_comp as CostID From ad_prod_hrs ;

HIC