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

distinct text from 3 tables

Hello,

I have a .qvw with 3 tables. For example:

Table1:

Tour
Driver 1
Qualification
10PeterA, B, C

Table2:

Tour
Driver 2Qualification
10PaulC, D

Table3:

Tour
Driver 3Qualification
10JohnA, B

My Problem is:

When i select Tour 10, then i want to show in a listbox or a diagramm the result of Qualification from all Drivers

Tour
Qualification
10A, B, C, D

Can anybody help me?

Thanks

Chris

1 Solution

Accepted Solutions
Jason_Michaelides
Luminary Alumni
Luminary Alumni

This may not work depending on your data schema but try:

Concat(DISTINCT Qualification,',')

as your expression, with Tour as your dimension.

Hope this helps,

Jason

View solution in original post

12 Replies
Jason_Michaelides
Luminary Alumni
Luminary Alumni

This may not work depending on your data schema but try:

Concat(DISTINCT Qualification,',')

as your expression, with Tour as your dimension.

Hope this helps,

Jason

Not applicable

it wont work without 'total' qualifer

Vitul

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Shouldn't need TOTAL if Tour is the only dimension.

Not applicable

its not working even tour is the only dimension..........

Vitul

wunderch
Creator
Creator
Author

Hi Jason,

do you also have a solution for this constellation:

1 Table:

TourDriver1Qual1. Driver1Qual2. Driver1Qual.3 Driver1Driver2Qual1. Driver1Qual2. Driver1Qual.3 Driver1Driver3Qual1. Driver1Qual2. Driver1Qual.3 Driver1
10PeterABCPaulCD JohnAB
Result
TourQualifikation
10A, B, C, D

Thanks

Chris

Not applicable

its working...i had some problem with my data...

sry....

Vitul

Jason_Michaelides
Luminary Alumni
Luminary Alumni

How does the actual data look, Chris?  Can you post a sample?

wunderch
Creator
Creator
Author

Here is a example.

TUTURN = Tour

TUFHR1 = Driver1

TUFHR2 = Driver2

TUFHR3 = Driver3

TUFHR1_ZQUA1 = Driver1_Qualification1

.

.

.

Result for TUTURN=1686386

TUTURN Qualification

1686386 KÜCHEN 1, KÜCHEN 2, KÜCHEN 3, MÖBEL 3, ELEKTRO

Jason_Michaelides
Luminary Alumni
Luminary Alumni

OK - got it.  You need to use Crosstable().  Please post your 2 QVD files:

ZQUA_TESTCW.qvd and TOUR_Ebene2_2012.qvd and I'll show you how.

Cheers,

Jason