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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hamy_IT_Dev
Contributor II
Contributor II

How to show just one record in AGGR?

Hi

I have this table:

tblCustomer:
LOAD * INLINE [
Customer, Value
A, 20
A, 30
A, 40
B, 10
B, 15
C, 40
C, 55
D, 101
D, 102
D, 103
D, 104
];

I have created a straight table
Dimension: Customer
Expression: Sum(aggr(Sum(Value),Customer))

in result I have all customer

CC.PNG

 

 

 

but
How to show just one record when Customer = C ?

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Dimension: Customer
Expression: Sum({<Customer={'C'}>}Value)

You don't need aggr() here. 

View solution in original post

1 Reply
tresesco
MVP
MVP

Try like:

Dimension: Customer
Expression: Sum({<Customer={'C'}>}Value)

You don't need aggr() here.