Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I have like 3 Fact tables (no join/concanate) and for each of them I have a "bla bla AS Source..", so I end up with Source A, Source B, Source C, but the content is the same and there is several choices that the user needs to choose from.
At the front-end I need to put them together so the user only have one listbox, "one set of content". I cannot see how the concat can help here.
What is the correct solution for this? and of course I am concerned that the datamodel still work.
so I end up with Source A, Source B, Source C, but the content is the same
Then you should concatenate those fact tables:
FactTable:
LOAD *, 'Source A' as Source FROM SourceA;
concatenate(FactTable)
LOAD *, 'Source B' as Source FROM SourceB;
concatenate(FactTable)
LOAD *, 'Source C' as Source FROM SourceC;
If only the content of the source-variable is the same,and not the whole fact table, then you load all tables, and just rename the Source variable in all 3 with the same name, without concatenating
thx but then I get loops, as they are linked via other fields.
Thx but I dont want to concatenate or join them.
Why do you not want to concatenate them? What is the business requirement that you think cannot be met if you do concatenate the tables?
Then you 'qualify' each table. Looking at your request however, I don't see why you would not concatenate all 3 tables if they have all three the same information or the same fields. By concatenating, you won't lose any data, the program just puts all three tables together. Look at it as putting data from 3 separate excell sheets into one sheet. You won't lose any columns, your number of rows get bigger.
If possible, then please describe your variables in your 3 tables, and why they should keep separate.
Hi Mikael,
You will try like this type.
FactTable1:
LOAD *,
A as Source
FROM SourceA;
FactTable2
LOAD *,
B as Source
FROM SourceB;
FactTable3
LOAD *,
C as Source
FROM SourceC;
Thanks,
krish
Too large and complex, there is a lot of other fields and data.
Concatenating fact tables is easy if they contain the same content. Other fields and data shouldn't have any effect on that. But if you think that it cannot be done then perhaps you shouldn't try at all and create three separate documents instead.