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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
nboccassini
Partner - Creator
Partner - Creator

Data model information

Hi,

I need help for modeling data in qlikview. I have these table:

Table A contains information of the relation of dealer (of my company) and the competitor of other company (external competitor) and competitor in my company (internal competitor)

TABLE A:
DEALER_IDINTERNAL_COMPETITOREXTERNAL_COMPETITOR_ID
142
237
342
43

Table B contains prices of one product for the external competitor

TABLE B:
EXTERNAL_COMPETITOR_IDDATEPRICE
101/04/20142,45
201/04/20146,34
301/04/201435,34
401/04/201434,46
501/04/20142,56
601/04/201464,1
701/04/201445,45

Table C contains prices for the dealer of my company (so DEALER_ID and INTERNAL_COMPETITOR):

TABLE C:
DEALER_IDDATEPRICE
101/04/2014223,64
201/04/201464,2
301/04/20147,33
401/04/201434,88
501/04/201421,03
601/04/201444,88
701/04/201414,21

I want to realize a report like this:

DEALER_IDCOMPETITORCOMPANYDATAPRICE DEALERPRICE COMPETITOR
14INTERNAL01/04/2014223,6434,46
12EXTERNAL01/04/2014223,6464,2
23INTERNAL01/04/201464,27,33
27EXTERNAL01/04/201464,245,45
34INTERNAL01/04/2014
32EXTERNAL01/04/2014
43EXTERNAL01/04/2014

The problem is the internal competitor, because prices for these dealer that I want in the column PRICE COMPETITOR are in the same table A of the PRICE DEALER.

How can I model the data? I know that I can duplicate the information for the internal competitor and put it in the TABLE B, but I want to avoid this solution because the real tables are big (4GB Data).

Thanks!

14 Replies
Not applicable

Try to change chart to pivot table

Not applicable

Gabriele,

is Dealr_id from C key to internat_competitor from A?

nboccassini
Partner - Creator
Partner - Creator
Author

Yes! This is the problem

Not applicable

One more idea

I hope, you like it.

Reagrds

Darek

ps. changing to v2 with small (distinct) improvement.

Not applicable

I hope, last one version

In v2 i forgot about COMPETITOR_ID

And we must remember, that especioally in the case of bigger data volumes in memory usage cache has bigger part.

Qlikview stores data compressed (distinct values + binary index). Sometimes it is better to join tables. Shorter way from table to table means less time to propagate selections.

regards

Darek

ps. I changed to v4