Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
There are 2 tables - Sales and Plan. These two tables were created from resident tables.
This is complicated. Right now the 2 table are concatenated. I need to separate them and create link tables.
How do I create a link table between concatenated tables ?
The only way the big Sales table shows in the data model is with the CONCATENATE script. If I alter that there is no fact table in the model
Plan:
load
Company ,
[Brand Code] ,
Market ,
[Order Type Code] ,
[Sales Plan Amount] ,
[Cost Plan Amount] ,
[Sales Plan Quantity] ,
ApplyMap('PeriodMap', text([Year]) & '|' & text([Period])) as [ key_Date]
resident F100;
Sales:
load
[Company] ,
[Brand Code] ,
[Market] ,
[Order Type Code] ,
[key_Date]
resident F200;
CONCATENATE (Sales) load
Company,
[Brand Code],
Market,
[Order Type Code],
[Sales Plan Amount],
[Cost Plan Amount],
[Sales Plan Quantity],
ApplyMap('PeriodMap', text([Year]) & '|' & text([Period])) as key_Date
resident Plan;
drop table Plan;
I am not very sure of your requirement, could you please explain in detail?
Plan and Sale are concatenated .
They share common fields
Company
Brand Code
Market
Year
Period
How do I separate Plan and Sales by creating link table ?