Skip to main content
Announcements
Announcing Qlik Talend® Cloud and Qlik Answers™ to accelerate AI adoption! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

list box (?) for data cross several columns

Extreme noob here, please bear with me.

I need to analyze similar data across several columns:

ShopperProduct 1Product 2Product 3
1AppleOrange
2BananaAppleOrange
3Orange

How can I create a List Box (or other object) to capture the data across the different columns?

Product TypeCount
Apple2
Banana1
Orange3

Many Thanks, Frank

1 Solution

Accepted Solutions
maxgro
MVP
MVP

t:

LOAD Shopper,

    [Product 1],

    [Product 2],

    [Product 3],

    F5

FROM

[http://community.qlik.com/thread/154159]

(html, codepage is 1252, embedded labels, table is @1);

t2:

load Shopper, 1 as ProductNumber, [Product 1] as Product Resident t where len(Trim([Product 1]))>0;

load Shopper, 2 as ProductNumber, [Product 2] as Product Resident t where len(Trim([Product 2]))>0;

load Shopper, 3 as ProductNumber, [Product 3] as Product Resident t where len(Trim([Product 3]))>0;

then add a straight table chart

see attachment

1.jpg

View solution in original post

2 Replies
maxgro
MVP
MVP

t:

LOAD Shopper,

    [Product 1],

    [Product 2],

    [Product 3],

    F5

FROM

[http://community.qlik.com/thread/154159]

(html, codepage is 1252, embedded labels, table is @1);

t2:

load Shopper, 1 as ProductNumber, [Product 1] as Product Resident t where len(Trim([Product 1]))>0;

load Shopper, 2 as ProductNumber, [Product 2] as Product Resident t where len(Trim([Product 2]))>0;

load Shopper, 3 as ProductNumber, [Product 3] as Product Resident t where len(Trim([Product 3]))>0;

then add a straight table chart

see attachment

1.jpg

Not applicable
Author

That solves it. Thank you Massimo !