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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Different rows in one row per customer

Hi all,

In my database I have the following information:

CustomerBranche
Customer ABranche X
Customer ABranche Y
Customer BBranche X
Customer CBranche Y
Customer CBranche Z

The problem I am facing is that I get multiple rows for a customer. So, what I would like to see is this:

CustomerBranche
Customer ABranche X, Branche Y
Customer BBranche X
Customer CBranche Y, Branche Z

Is there any way to solve this:

1. In the sript?

2. In a chart?

Kind regards,

Henco

Labels (1)
1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Henco

In script:

LOAD Customer,

     Concat(Branche, ',') As BrancheList

Resident Customers;

In a chart, very similar:

     Dimension: Customer

     Expression: Concat(DISTINCT Branche, ',')

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Henco

In script:

LOAD Customer,

     Concat(Branche, ',') As BrancheList

Resident Customers;

In a chart, very similar:

     Dimension: Customer

     Expression: Concat(DISTINCT Branche, ',')

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Hi,

please find the attached file...!

Regards,

Niranjan M.

Anonymous
Not applicable
Author

Thanks a lot Jonathan!

Cheers,

Henco