Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Crosstable?

Hi all,

I have this:

CustomerProduct XProduct YProduct Z
123011
456100
789111

I want this?

CustomerProduct
123Y
123Z
456X
789X
789Y
789Z

Can you help me?

Regards,

Arjan

1 Solution

Accepted Solutions
sureshbaabu
Creator III
Creator III

Hello,

Please try the following:


CrossTable(Product, Data, 2)

LOAD Customer,

     [Product X],

     [Product Y],

     [Product Z]

FROM

Data.xlsx

(ooxml, embedded labels, table is Sheet1);

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Temp:

CrossTable(Product, Value)

LOAD * INLINE [

    Customer, Product X, Product Y, Product Z

    123, 0, 1, 1

    456, 1, 0, 0

    789, 1, 1, 1

];

Result:

Load Customer, replace(Product,'Product ','') as Product

Resident Temp

where Value=1;

drop table Temp;


talk is cheap, supply exceeds demand
sureshbaabu
Creator III
Creator III

Hello,

Please try the following:


CrossTable(Product, Data, 2)

LOAD Customer,

     [Product X],

     [Product Y],

     [Product Z]

FROM

Data.xlsx

(ooxml, embedded labels, table is Sheet1);