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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

match two tables

Hi please help me,

i have two tables

1.  Date/KST/value

   

2. KST/value

the Problem is that in table 2 are only value from exact one KST (1747)

and in table 1 this KST exist with the sum of table 2

my Problem is to create a Pivot in which the rows of the table 2 are shown in teh same column like the other values from table 1 kst

hope u can help me


Labels (1)
1 Solution

Accepted Solutions
puttemans
Specialist
Specialist

After the load statement, you add a where-clause :

FROM .....

WHERE KST <> 1747;

View solution in original post

12 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I'm afraid I don't understand your question. Can you explain it with example records? Or post a qlikview document that demonstrates the problem?


talk is cheap, supply exceeds demand
aveeeeeee7en
Specialist III
Specialist III

Requirement not clear....???


Not applicable
Author

Tabel1                                                  Table2

KST value                                             KST value

1740   500                                            

1741   700

1742   800

1747   4000                                           1747  1000

                                                               1747 1000

                                                               1747 1000

                                                               1747  1000

how can I MATCH THESE TWO TABLES AND MAKE ONE PIVOT?


Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Table1:

LOAD Date, KST, value FROM ...

Table2:

LOAD KST, value as value2 FROM ...

Then add the fields as necessary to your pivot table.


talk is cheap, supply exceeds demand
Not applicable
Author

the Problem is that i have then the value double instead of 4000 , 8000 for KST

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

What exactly do you want to see in the pivot table?


talk is cheap, supply exceeds demand
Not applicable
Author

i want to replace the one value from kst 1747 from table 1 with the rows from table 2

the prob is that the sum of KST 1747 in table 1 is exact the sum of KST 1747 in table 2

puttemans
Specialist
Specialist

Hi there,

You first load individual KST from Table2

Then you load Table1, but you do not load the KST from Table2 that are in Table1

Then you concatenate Table2

Then you can make the pivot table on your original data.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Replace is not see. What do you want to see in your pivot table? What end result do you want to see?


talk is cheap, supply exceeds demand