Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good day, please refer to my scrip below:
//************************DEFAULT DIMENSION ON ITEMS***********************
DefaultDimension:
Load
"No_" as "Item No",
"Dimension Code" as "Trending Code",
"Dimension Value Code" as "Trending Value";
SQL SELECT
"No_",
"Dimension Code",
"Dimension Value Code"
FROM "DynamicsNAV90_Prod".dbo."Ambassador Foods (Pty) Ltd$Default Dimension"
where "Dimension Code" in ('CHANNEL', 'MFGTYPE', 'PACKSIZE', 'SERVICE');
Try like this
DefaultDimension:
Load
"No_" as "Item No",
"Dimension Code" as "Trending Code",
"Dimension Value Code" as "Trending Value";
SQL SELECT
"No_",
"Dimension Code",
"Dimension Value Code"
FROM "DynamicsNAV90_Prod".dbo."Ambassador Foods (Pty) Ltd$Default Dimension"
Left join (DefaultDimension)
"Item No",
"Packsize UOM"
FROM "DynamicsNAV90_Prod".dbo."Ambassador Foods (Pty) Ltd$Unit of Measure"
where "Trending Code" = 'PACKSIZE';
Would you be able to share a sample to show what exactly you are looking to do?
Please see screenshot below of field I would like to add:
Try like this
DefaultDimension:
Load
"No_" as "Item No",
"Dimension Code" as "Trending Code",
"Dimension Value Code" as "Trending Value";
SQL SELECT
"No_",
"Dimension Code",
"Dimension Value Code"
FROM "DynamicsNAV90_Prod".dbo."Ambassador Foods (Pty) Ltd$Default Dimension"
Left join (DefaultDimension)
"Item No",
"Packsize UOM"
FROM "DynamicsNAV90_Prod".dbo."Ambassador Foods (Pty) Ltd$Unit of Measure"
where "Trending Code" = 'PACKSIZE';
Thank you..