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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Unique record entry

Hi,

I have a table of items; these items can exist in multiple countries.

I need a table that shows only one line per item with three columns - one for English Descirption, German Description and French description.  Essentially, I only want a table with four rows; currently I am getting twelve.

Any help would be appreciated; thanks in advance.

C

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi,

try

ItemsStep2:

Load

Item,

    only(if(Country = 'UK', Description)) as UK_Description,

   only(if(Country = 'Germany', Description)) as German_Description,

   only(if(Country = 'France', Description)) as French_Description

resident ItemsStep1 group by Item;


DROP table ItemsStep1;

View solution in original post

2 Replies
swuehl
MVP
MVP

Hi,

try

ItemsStep2:

Load

Item,

    only(if(Country = 'UK', Description)) as UK_Description,

   only(if(Country = 'Germany', Description)) as German_Description,

   only(if(Country = 'France', Description)) as French_Description

resident ItemsStep1 group by Item;


DROP table ItemsStep1;

Not applicable
Author

Awesome, thank you!