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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Replace Synthetic Key with LinkTable

Dear QVExperts,

How to replace the Synthetic Table with LinkTable.

Can you please suggest me on this.

Syn.jpg

Thanks

Sasi

13 Replies
Not applicable
Author

Thanks Everyone for the valued Suggestions.

Resolved the issue.

Not applicable
Author

Hey Sasi,

I work for Pernambuco (State of Brazil) Government, and here we deal with LAAAARGE DATAS. So, we have to use LinkTable like I demonstrate in this attachment.

Your data structure should look like this:

LINKTABLE.png

The linktable is constructed like follows:

//HERE THESE LINK TABLES SHOULD NATURALLY BE CONCATENATED

LINKTABLE:

LOAD

    YEAR&'-'&MONTH as %YEAR_MONTH_INCENTIVE_KEY,

      null() as %YEAR_MONTH_SALES_KEY,

      null() as %YEAR_MONTH_RETURN_KEY,

      YEAR,

      MONTH

FROM

[LINTABLE.xlsx]

(ooxml, embedded labels, table is INCENTIVE);

LINKTABLE:

LOAD

      null() as %YEAR_MONTH_INCENTIVE_KEY,

      YEAR&'-'&MONTH as %YEAR_MONTH_SALES_KEY,

      null() as %YEAR_MONTH_RETURN_KEY,

      YEAR,

      MONTH

FROM

[LINTABLE.xlsx]

(ooxml, embedded labels, table is SALES);

LINKTABLE:

LOAD

      null() as %YEAR_MONTH_INCENTIVE_KEY,

      null() as %YEAR_MONTH_SALES_KEY,

      YEAR&'-'&MONTH as %YEAR_MONTH_RETURN_KEY,

      YEAR,

      MONTH

FROM

[LINTABLE.xlsx]

(ooxml, embedded labels, table is RETURN);

The null() statements are for standardize the LinkTable for a natural concatenation.

marcus_sommer

It's a possible way but I doubted it that it's best way by LAAAARGE DATAS by which is mostly better to have a single fact-table.

- Marcus

Not applicable
Author

But when you have single fact table the data structure doesn't show as much as we need.

I agree that have a single fact is the easiest way, simply concatenate everything... but sometimes we need to "see" what's going wrong, and link table helps a lot.

One fact table for 30 facts from diferent databases will not help.

Giba