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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

Star Schema Key Definition

Hello, i need to know how to the following thing:

Table A

  Key A

  Field A

  Field B

Table B

  Key B

  Field C

  Field D


I need to have a Table C Having the Key of both A and B Tables! Is there any simply method to do this?


Table C

  Key A

  Key B

  Field E

  Field F


Thanks

Marco

Labels (1)
11 Replies
marco_puccetti
Partner - Creator
Partner - Creator
Author

Is it correct?

Thanks

Marco

puttemans
Specialist
Specialist

Hi Marco,

You need to have a link with the key in order for the associative model to work. It would thus rather look like this :

A:

LOAD

     X as Key,

     Y,

     Z

FROM

xx.QVD (qvd);

C:

LOAD

     A as Key, or B-C as Key or B+D as Key

     B,

     C,

     D

FROM

yy.QVD (qvd);

As long as the content of your variable Key in both tables is the same.