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

Data modelling

Hi All,

I have 4 tables Tab1, Tab2, Tab3, Tab4. In all my 4 tables i have a,b,c,d common fields.

Again in Tab1 and Tab2 i have e,f,g as common fields and in Tab2, Tab3 i have h,i as common fields.

i'm unable to do data modelling for this, could you please help me on this

Tab1Tab 2Tab3HTab4
aaaa
bbbb
cccc
dddd
eehz
ffip
ggy
hk
ul
vh
w

Thanks,

Vamsi

4 Replies
ashfaq_haseeb
Champion III
Champion III

Hi

Reddy could you be more clear, What are you trying to achieve here.

what is your expected output with some sample data.

Regards

ASHFAQ

eduardo_sommer
Partner - Specialist
Partner - Specialist

One possible solution is to create a field called Table, with values 1 to 4, representing rhe original table and have the four tables concatenated. The fields that aren't part of an individual table will have null as value.

Eduardo

Not applicable
Author

Hi Mohammad,

Please find the sample QVW and Excel file and give some suggestion on Data modelling.

For A, B, C fields in all tables we can create field concatenation or link table, is it correct?

Thanks,

VV

ashfaq_haseeb
Champion III
Champion III

Hi,

It really depends on what are you trying to achieve.

One of the possibility, look at the below code.

LOAD A,

     B,

     C,

     D,

     E,

     SALES,

     1 as FLAG

FROM

Sample.xlsx

(ooxml, embedded labels, table is Sheet1);

Concatenate

LOAD A,

     B,

     C,

     D,

     E,

     F,

     [RESPONSE COUNT],

      2 as FLAG

FROM

Sample.xlsx

(ooxml, embedded labels, table is Sheet2);

Concatenate

LOAD A,

     B,

     C,

     F,

     [AVG SALES],

      3 as FLAG

FROM

Sample.xlsx

(ooxml, embedded labels, table is Sheet3);

Regards

ASHFAQ