Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

result line on one dimesion

I have a pivot table dimension Brand and an expression with a count to select shops that reach their target for a brand and I would like to have the number of shops that reach all targets.

Brands - reach target

Brand 1 - 10 shops

Brand 2 - 5 shops

I Would like to have:

Brands reach target

Brand 1 - 10 shops

Brand 2 - 5 shops

3 shops reach target 1 and 2

1 Reply
johnw
Champion III
Champion III

Here's one way. See attached.

if(dimensionality()
, count({<"Reaches Target?"={'Y'}>} Shop)
,-sum(aggr(count({<"Reaches Target?"={'Y'}>} Brand)=2,Shop)))