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: 
AdrianS1
Contributor III
Contributor III

GetSelectedCount Dimenions in Table

Hi guys, I have dimension ( Company-> Brand->PrimaryCategory).

My table is looking:

AdrianS1_0-1684931020033.png

 

Im using function =If(GetSelectedCount (Company)>0,Brand)  when I pick some Brand X, the Company column is working good. I've got Brand and all Companies which have this Brand.

When I click Company i want to have only companies which have this Primary Category but the Brand have to stay like i picked before. When I pick some Company the Brand name is filtering again and showing me all brand in company.

Can I stop the Brands changing   after Company picking?

Labels (3)
3 Replies
Chanty4u
MVP
MVP

May be this 

=If(GetSelectedCount(Company) > 0, Aggr(Only(Brand), Brand), Brand)

 

AdrianS1
Contributor III
Contributor III
Author

don't work 😞

vinieme12
Champion III
Champion III

What is the Purpose of Having GetSelectedCount() ? any specific reason?

associated Brand / Category values will naturally show based on relevant selections

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.