Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

duplicate values by using of left join

Hi Folks,

i have two table:

  

CategoryProductSales
C1p110
C1p150
C2p220
C2p312
C2p341
C3p215

  

CategoryProductCost
C1p15
C1p110
C2p220
C2p310
C2p312
C3p24

if i use the left join, than i have a duplicate values, i can solve it by using of concatenation, does anybody have any idea how to solve it by another way?

Thanks a lot

Beck

12 Replies
beck_bakytbek
Master
Master
Author

can you please give me an example

PrashantSangle

Try Below script

Test:

LOAD Distinct

Category,

    Product,

    Sales

FROM

Book1.xlsx

(ooxml, embedded labels, table is Sheet2);

Left Join

LOAD Category,

    Product,

    Cost

FROM

Book1.xlsx

(ooxml, embedded labels, table is Sheet3);

Exit SCRIPT;

Also sample data attached.

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
beck_bakytbek
Master
Master
Author

Hi Sangle thanks a lot for your help and time