Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

To Remove Unnecessary Rows after linking the two tables

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.

5 Replies
Kushal_Chawda

AddressID is not available in Sales header table. On which field you are linking both the tables?

Not applicable
Author

‌by composite key of billtoaddreessID and shiptoID in salesorderheader

maxgro
MVP
MVP

Could you post the Qlik script you use to make the Excel?

Not applicable
Author

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

MarcoWedel

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