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: 
Not applicable

calculation distinct

Hi

How to count the number of ranches in which there document.2 ?

Thank you

13 Replies
Not applicable
Author

HI,sasikanth_Narne

But I added + 1 branch. and now in the table should be "2"Screenshot_3.png

sasikanth
Master
Master

hi

Try this expression

= count(DISTINCT aggr(count( if(document<>'document2', branch)),branch))

removed DISTINCT inside aggr, just try it.

Pls. see attachement

Not applicable
Author

Thank you

Anonymous
Not applicable
Author

count( {<Column name={'Name'}>}Distinct Documnent2)