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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
dhavalvyas
Contributor III
Contributor III

Two Transaction Table

Suppose I have mainly two transacion table.Then how to make Data Model for it.How to apply logic for it.Wheather I have to concatenate both tables and make flag for Field or any other logic ??

Please can any one help me I am little bit confused in it....

1 Reply
ziadm
Specialist
Specialist

If both table having same or close structure then its best to concatenate both tables. if you need to differentiate transaction from the table then you add a new field as a flag of the table

FactTable:

Load

ProdID,

Sales,

SaleDate,

'Region1' as TransactionSource

From RegionSales1.QVD

Concatenate

Load

ProdID,

Sales,

SaleDate,

'Region2' as TransactionSource

From RegionSales2.QVD

Then you may use Set Analysis in your application to sum only sales from Region1 as

Sum({<TransactionSource = {Region1}>}Sales 

or

Sum({<TransactionSource = {Region2}>}Sales