Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator
Creator

Duplicates causing wrong count

Hi,

In the below image one case ID "WO-00000852" has two Actions numbers "JOB-00000929" and "JOB-00000930".

Actual data is like for action number the supllier is

"JOB-00000929"  : Aspect Furniture Systems

"JOB-00000930" : Alexander Construction

But in the below table both the suppliers are assigned to both Action numbers which causing wrong count when selecting a supplier.

Supplier is an extenal table which is joined as

Urb_TEMP:
LOAD

wo_id,
ActionNumber,
Job_Priority as Priority,
trim(UrbaniseID_SUPP) as UrbaniseID_SUPP
.
.
.
.
etc (Many fields);,

from XYZ;

left join(Urb_TEMP)
Load
trim(UrbaniseID) as UrbaniseID_SUPP,

trim(F_ContactSupplier_SEQ) as F_ContactSupplier_SEQ_Temp

From supplier(qvd);

 

Krish2459_58_0-1698865163314.png

Please help to solve this

 

Labels (3)
4 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Do not join the Supplier table. Keep it as a separate table. 

Supplier:
Load
  trim(UrbaniseID) as UrbaniseID_SUPP,
  trim(F_ContactSupplier_SEQ) as F_ContactSupplier_SEQ_Temp
From supplier(qvd);

-Rob

Krish2459_58
Creator
Creator
Author

Hi,

Here is my model. I want to bring Supplier to Urb_TEMP table.

 

Suppliers:
LOAD
F_ContactSupplier_SEQ ,

UrbaniseID as UrbaniseID_SUPP,
"Supplier Name"

FROM [$(varTQVDPath)Suppliers_Temp.qvd]
(qvd);


Urb_TEMP:
LOAD

wo_id,
ActionNumber,
Job_Priority as Priority,
trim(UrbaniseID_SUPP) as UrbaniseID_SUPP,
etc... (Many fields);

from XYZ;

MayilVahanan

Hi

One UrbaniseID_SUPP has 2 supplier name? 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Krish2459_58
Creator
Creator
Author

Hi,

One WO_id has two action numbers and supplier table is linked by UrbaniseID_SUPP like below.

Krish2459_58_0-1698923036165.png