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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

aggr and set analysis

Hi im trying to get the same result as this formula when i select excluded SiteID=9999

sum(AGGR(Count(DISTINCT SiteID),TransportAssignmentID))


i tried this but it wouldnt help

sum({$<SiteID =-{9999}>}AGGR(Count(DISTINCT SiteID),TransportAssignmentID))


Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this may be:

Sum({<SiteID =-{9999}>}Aggr(Count(DISTINCT {<SiteID =-{9999}>} SiteID),TransportAssignmentID))

View solution in original post

2 Replies
marcus_sommer
MVP
MVP

Try:

sum(AGGR(Count({$<SiteID -= {9999}>} DISTINCT SiteID),TransportAssignmentID))


- Marcus


sunny_talwar
MVP
MVP

Try this may be:

Sum({<SiteID =-{9999}>}Aggr(Count(DISTINCT {<SiteID =-{9999}>} SiteID),TransportAssignmentID))