Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
md_anasabbasi
Contributor III
Contributor III

Not able to aggregate the data

Hi All,

    I came across the following set of data and I am confused how to actually calculate(write the expression)-

AccountAddressStructuresamount
abc143 east street21254

abc

143 east street21257
abc143 east street245689
abc124 wing17895
abc124 wing1475
abc124 wing13587
abc124 wing1454
abc12 ertsd54585
abc12 ertsd575412
xyz134 hinjew14546
xyz134 hinjew158794
xyz134 hinjew1451642
xyz85,E blue4121
xyz85,E blue4124578

   I have a text object which should show total structures-

If account 'abc' is selected so total structures=2+1+5=8

How should i write the expression for this, need help.


Thanks

5 Replies
OmarBenSalem

maybe, sum(distinct Structures) ?

Capture.PNG

Capture.PNG

trdandamudi
Master II
Master II

One way is as below:

Ralf_Heukäufer
Partner - Creator III
Partner - Creator III

Hello Anas,

try

aggr(sum(Structures),Structures)

or

sum(aggr(Structures,Structures))

I'am not exactly shure which of both works

Mark_Little
Luminary
Luminary

Hi,

The above example will work on selection.

But if you want it say on a chart

Use

=SUM(AGGR(ONLY(Structures),Address))

Mark

OmarBenSalem

sum(distinct Structures) would do it; why complicate things?

Capture.PNG