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: 
zarmoton
Creator
Creator

Not easy ! How to do a complex pivot table ??


Hello

This is a very light sample to explain my problerm, my database is very huge. So i cannot change to format of the input data., and with creating an intermediate other table

Name sellerAmountName Buyer
A20C
A40A
A100B
A40B
B10A
B10A
B30C
C1A
C2D

how to build a pivot to give that, directly link of the table as above ???:

NameSellerBuyer
A20061
B50140
C350
D2
Total253

253

Thank you for your help

As you can see the column "Seller" is the result of a pivot table of Name Seller / Sum (Amount)

and the colum "Buyer" is the result of a pivot table of Name Buyer/ Sum (Amount)

12 Replies
zarmoton
Creator
Creator
Author

First thk yu

No, I don’t miss the second table

Your solution is ok for a small table like that, but not enough generic

But now imagine a table with 10 millions of rows, and not with 4 names (A, B C D) but with 5000 names !!!

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

And that's exactly why you need to fix your data model.

Or compromise and use both fields as dimensions in the pivot table. The totals of the rows and columns give you the buyer and seller totals per name.

comm92327.png


talk is cheap, supply exceeds demand
zarmoton
Creator
Creator
Author

I’m not at all beginner under qlikview ..

My data model is just very very complex, I have more than 200 tables, application is very huge

I cannot change the model so easily, impact is tremendous!!

I really need to find an answer with the pivot table chart object plug directly on a such data model.