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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

group by column table

Hello,

I have this Charts->Table:

Country
Customer
Value
GermanyCustomer 125
GermanyCustomer 145
GermanyCustomer 220
AustriaCustomer 35
AustriaCustomer 330
HungaryCustomer 445

How can I group customers like this?

Country
Customer
Value
GermanyCustomer 170
GermanyCustomer 220
AustriaCustomer 335
HungaryCustomer 445

Thank you!

1 Solution

Accepted Solutions
pathiqvd
Creator III
Creator III

Hi,

   Try  this ,

aggr(Sum(value),customer,country)

write this in measure

Regards,

View solution in original post

4 Replies
MK_QSL
MVP
MVP

T1:
Load Country, Customer, Value From Table;

T2:
Load Country, Customer, SUM(Value) as TotalValue Resident T1 Group by Country, Customer;

Drop Table T1;

Not applicable
Author

I am at the beginning of using these aplication, where should I insert the scripts  for T1 and T2 ?

Thank you!

pathiqvd
Creator III
Creator III

Hi,

   Try  this ,

aggr(Sum(value),customer,country)

write this in measure

Regards,

Not applicable
Author

work, thank you!