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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Gathering data of multiple tables

Hello Community !  I need a hand on this problem:

I've got 4 tables storing different kind of data and I would like to gather all combination in one signe table. I don't know how to do this. Jointure and concatenation don't seems to be the good way because I want to have every combinations.

the 1st table contains  dataset names : dataset 1, dataset 2, dataset 3...

La 2 nd table contains scénario family: optimistic, pessimistic, realistic...

La 3rd table contains scénario : very favorable, favorable, unfavorable, ....

La 4rh  table contains years: 2000,2018,2040,2050...

A la fin je voudrais avoir une seule table

du type

dataset 1| optimistic| superfavorable |2000

dataset 1| optimistic| superfavorable |2018

dataset 1| optimistic| superfavorable |2040

...

dataset 1| optimistic| favorable | 2000

dataset 1| optimistic| favorable | 2018

...

dataset 1| optimistic| unfavorable| 2000

dataset 1| optimistic| unfavorable| 2018

...

dataset 1| pessimistic| superfavorable| 2000

dataset 1| pessimistic| superfavorable| 2018

....

dataset 2 |optimist| superfavorable |2000

...

Is there a way of doing this with QlikView ?

Hope you will help

1 Solution

Accepted Solutions
maxgro
MVP
MVP

with join, example (just 3, add the year)

t:

load * inline [

field1

dataset 1

dataset 2

dataset 3

];

join (t)

load * inline [

field2

optimistic

pessimistic

realistic

];

join (t)

load * inline [

field3

very favorable

favorable

unfavorable

];

1.png

View solution in original post

2 Replies
maxgro
MVP
MVP

with join, example (just 3, add the year)

t:

load * inline [

field1

dataset 1

dataset 2

dataset 3

];

join (t)

load * inline [

field2

optimistic

pessimistic

realistic

];

join (t)

load * inline [

field3

very favorable

favorable

unfavorable

];

1.png

MarcoWedel

Hi,

I just saw you created an english version of your  thread Rassembler les données en les combinant


One solution might be:


QlikCommunity_Thread_133168_Pic2.JPG.jpg


QlikCommunity_Thread_133168_Pic1.JPG.jpg


tabJeuDeDonnée:

LOAD * INLINE [

    JeuDeDonnée

    jeu 1

    jeu 2

    jeu 3

];

tabFamDeScénario:

LOAD * INLINE [

    FamDeScénario

    optimiste

    pessimiste

    realiste

];

tabScénario:

LOAD * INLINE [

    Scénario

    super favorable

    favorable

    défavorable

];

tabAnnées:

LOAD * INLINE [

    Années

    2000

    2018

    2040

    2050

];

NoConcatenate

tabCombiné:

LOAD * Resident tabJeuDeDonnée;

Join

LOAD * Resident tabFamDeScénario;

Join

LOAD * Resident tabScénario;

Join

LOAD * Resident tabAnnées;

DROP Tables tabJeuDeDonnée, tabFamDeScénario, tabScénario, tabAnnées;

hope this helps

regards

Marco