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: 
Oberpfälzer
Contributor
Contributor

Nested aggregation / disregard selections

Hi,

 

I have a nested aggregation:

 

count(
if(
Aggr( count( [Artikel-NR]),PTU_IDENT)>1
and
LGTYP ='MPS'
,Aggr( count( [Artikel-NR]),PTU_IDENT)

)
)

 

Where do i put the {1} ,to let it disregard selections?

 

i tried sth like:

count( {1}
if(
Aggr({1} count( [Artikel-NR]),PTU_IDENT)>1
and
LGTYP ='MPS',
Aggr({1} count( [Artikel-NR]),PTU_IDENT)

)
)

 

but It's not working a 100%.

1 Solution

Accepted Solutions
sunny_talwar

Try this

Count({1} Aggr(
  If(
    Count({1} [Artikel-NR]) > 1 and
    Only({1} LGTYP) ='MPS',
  Count({1} [Artikel-NR]))
, PTU_IDENT))

View solution in original post

2 Replies
sunny_talwar

Try this

Count({1} Aggr(
  If(
    Count({1} [Artikel-NR]) > 1 and
    Only({1} LGTYP) ='MPS',
  Count({1} [Artikel-NR]))
, PTU_IDENT))
Oberpfälzer
Contributor
Contributor
Author

thanks , your solution works 🙂