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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
vijayit43
Creator
Creator

Distinct Count when collapse

Dear All,

In My Qv  we create pivot dimension field is state,DistributorCode,RetailerCode,brand and expression field is count(distinct brand) when we expend brand level then give right answer which we want and when we collapse state level then also distinct count but we want when we collapse state level then distinct count only retailercode level after that it sum that count how to possible please help ..

for refrence attach qv

1 Reply
maxgro
MVP
MVP

seems to me you want to sum the distinct brand by state and customer

sum(aggr(count (distinct brand),  state, customer))