Professional Documents
Culture Documents
LOAD
"Location Name" ,
"Season Code",
"Invoice Number",
"Invoice Date",
"Product Code",
"Hybrid Code",
"Crop Description",
"UOM Kgs",
"Customer Code",
"Customer Name",
"Customer District",
"Warehouse Code",
"Warehouse Description",
"St. Loc.",
"Distributor Price",
"ABS Discount",
"NORMAL DISCOUNT",
"Invoice Amount"
where "Location Name" <> 'IN - Non-Comm Sale' and "Crop Description" <> 'Plant inoculant' and "St.
Loc." <> 9999 ;
join LOAD
"Location Name" ,
"Season Code",
"Invoice Number",
"Invoice Date",
"Product Code",
"Product Description",
"Hybrid Code",
"Crop Description",
"UOM Kgs",
"Customer Code",
"Customer Name",
"Customer District",
"Warehouse Code",
"Warehouse Description",
"St. Loc.",
"Distributor Price",
"ABS Discount",
"NORMAL DISCOUNT",
"Invoice Amount"
where "Location Name" <> 'IN - Non-Comm Sale' and "Crop Description" <> 'Plant inoculant' and "St.
Loc." <> 9999 ;
join LOAD
"Location Name" ,
"Season Code",
"Invoice Number",
"Invoice Date",
"Product Code",
"Product Description",
"Hybrid Code",
"Crop Description",
"UOM Kgs",
"Customer Code",
"Customer Name",
"Customer District",
"Warehouse Code",
"Warehouse Description",
"St. Loc.",
"Distributor Price",
"ABS Discount",
"NORMAL DISCOUNT",
"Invoice Amount"
where "Location Name" <> 'IN - Non-Comm Sale' and "Crop Description" <> 'Plant inoculant' and "St.
Loc." <> 9999 ;
join LOAD
"Location Name" ,
"Season Code",
"Invoice Number",
"Invoice Date",
"Product Code",
"Product Description",
"Hybrid Code",
"Crop Description",
"UOM Kgs",
"Customer Code",
"Customer Name",
"Customer District",
"Warehouse Code",
"Warehouse Description",
"St. Loc.",
"Distributor Price",
"ABS Discount",
"NORMAL DISCOUNT",
"Invoice Amount"
where "Location Name" <> 'IN - Non-Comm Sale' and "Crop Description" <> 'Plant inoculant' and "St.
Loc." <> 9999 ;
MasterReturn:
LOAD
"Location Name" ,
"Season Code",
"Product Code",
"Product Description",
"Hybrid Code",
"Crop Description",
"Customer Code",
"Customer Name",
"Customer District",
"Warehouse Code",
"Warehouse Description",
"St. Loc.",
"Distributor Price",
"ABS Discount",
"NORMAL DISCOUNT",
where "Location Name" <> 'IN - Non-Comm Sale' and "Crop Description" <> 'Plant inoculant' and "St.
Loc." <> 9999 ;
Join
LOAD
"Location Name" ,
"Season Code",
"Product Code",
"Product Description",
"Hybrid Code",
"Crop Description",
"Customer Code",
"Customer Name",
"Customer District",
"Warehouse Code",
"Warehouse Description",
"St. Loc.",
"Distributor Price",
"ABS Discount",
"NORMAL DISCOUNT",
where "Location Name" <> 'IN - Non-Comm Sale' and "Crop Description" <> 'Plant inoculant' and "St.
Loc." <> 9999;
Lookup_Key:
LOAD
Date_ID,
Year,
Month
FROM [lib://Qlik/Date_Week.xlsx]
join
LOAD
SAP_Location
FROM [lib://Qlik/Area previous.xlsx]
Join
LOAD
Hybrid
FROM [lib://Qlik/Hybrid.xlsx]
join
LOAD
Trade_Type
FROM [lib://Qlik/Trade_Type.xlsx]
Daily_Inv:
Load
Trade_Type,
"Invoice Amount" as Billing_Revenue
Resident MasterBilling;
Daily_Ret:
Load
Return,
Trade_Type,
Return_Value
Resident MasterReturn;
Key_Master:
Load
Date_ID,
SAP_Location,
Hybrid,
Trade_Type,
"Year" & "Month" & SAP_Location & Hybrid as Key1
Resident Lookup_Key;
PO:
LOAD
PO,
Rev,
NB
FROM [lib://Qlik/PO1.xlsx]
RSP:
LOAD
CM_Plan AS RSP,
"CM+1_Plan" AS "RSP+1",
"CM+2_Plan" AS "RSP+2"
FROM [lib://Qlik/RSP.xlsx]
Liq:
LOAD
S_Year,
Liq_YTD,
Liq_Weekly
Calendar:
LOAD
Date_ID,
Year,
Month,
Quarter,
"Days",
"Week",
Weekdays
FROM [lib://Qlik/Date_Week.xlsx]
Area:
LOAD
SAP_Location,
Area,
Region
Product:
LOAD
Hybrid,
Crop,
Brand,
Season
FROM [lib://Qlik/Hybrid.xlsx]
LOAD
Trade_Type
FROM [lib://Qlik/Trade_Type.xlsx]