Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
rotero
Creator
Creator

How to aggregate base on unique field

hi i have this kind of table:

i would like to display in pivot table the promo amt per cv_number and also display the sum(amount) per product.

Let assume i have a thousand lines with promo_amt (which is referring to amt per cv_number) and we have also the per product charging of this per cv_number. Do i have to use set analysis? i want to have a multiple dimension for aggregation.

     

cv_numberterritory_codepromo_amtstrProdcdamount
5651510131,196.91560852,599.74
5651510231,196.91750052,599.74
5651510331,196.91560852,599.74
5651510431,196.91750052,599.74
5651510531,196.91560852,599.74
5651510631,196.91750032,599.74
5651510731,196.91560852,599.74
5651510831,196.91750052,599.74
5651510931,196.91560852,599.74
5651511031,196.91750052,599.74
5651511131,196.91560852,599.74
5651511231,196.91750052,599.77
3 Replies
sunny_talwar

What would be the dimensions of your pivot table? Would you be able to provide us with the expected output (in a pivot table form) from your current sample?

rotero
Creator
Creator
Author

first i would like to have a dimension per document wherein i can display the promo amount per cv_number, then i will sum the promo amt per prod which is the amount field, i need to check if they have the same amount.

Eventually i will explore other dimension like per territory_code.

FYI originally  as per checking the loaded data came from 2 diff table: its like header and details tables.

But initially i got the script the loaded the data as my example above.

sunny_talwar

Ruby -

I am not sure I understand what you are looking to get. May be someone else can offer any advice

Best,

Sunny