Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello ,
As I am trying to link these two by AddressID ,then AddressID of Address table is being added into SalesOrderHeader. can anybody tell me why is it happening and what is solution of it? I am attaching xsl file which I am getting as output table.Please scroll it to end to understand Please Help me.
AddressID is not available in Sales header table. On which field you are linking both the tables?
by composite key of billtoaddreessID and shiptoID in salesorderheader
Could you post the Qlik script you use to make the Excel?
SalesOrderHeader:
LOAD SalesOrderID,
RevisionNumber,
OrderDate,
Status,
OnlineOrderFlag,
SalesOrderNumber,
PurchaseOrderNumber,
AccountNumber as SalesOrderHeader_AccountNumber,
CustomerID,
TerritoryID as SalesOrderHeader_TerritoryID ,
// CustomerID &'|'& TerritoryID as CustomerTerritryID,
BillToAddressID &'|'&ShipToAddressID as Address_ID ,
// ShipToAddressID,
ShipMethodID,
TaxAmt,
Freight,
LocalCurrency,
if(OnlineOrderFlag=1,'Website','SalesPersons') as OnlineSale
FROM
[QVD's\SalesOrderHeader.qvd]
(qvd);
Address:
NoConcatenate
LOAD AddressID as Address_ID,
AddressLine1,
AddressLine2,
City,
PostalCode,
StateProvinceCode,
CountryRegionCode as Address_CountryRegionCode,
IsOnlyStateProvinceFlag,
StateProvinceName,
TerritoryID ,
CountryRegionName
FROM
[QVD's\Address.qvd]
(qvd);
This is that script which me using to make linking but giving extra rows in SalesOrderHeader. by composite key of billtoaddreessID and shiptoID in salesorderheader
there are no common values in your Address_ID field loaded from Address.qvd and SalesOrderHeader.qvd.
This way linking does not make much sense.
The "unnecessary" rows in your Excel file are the Address_ID values from the Address.qvd.
To suppress them, select "Omit rows Where Field is NULL" on any column that should have values in your table box.
If its a straight table, then use "Suppress When Value is Null" for a dimension that should always have values.
hope this helps
regards
Marco