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: 
nisha_rai
Creator II
Creator II

Filter base Selection

Hi,

I have to show sum of sales for particular location,but if we select other location it should show Zero.

For example:

Country Sales

India 200

US 300

UK 100

Result : when no filter select from Country

India = 200 US = 300 UK =100  /// I am using set analysis for that

If we select India from Country List box

India = 200 US =0 UK =0 // Set analysis is not working it show India=200 US =300 UK =100

Please suggest me how to solve that to retrive the result.

Regards,

Nisha

19 Replies
nisha_rai
Creator II
Creator II
Author

                        

Hi Pooja,

I tried this in text box if(Getselectedcount(Country)=0 or if(match(Getcurrentselections(Country),'Inida'),1),1,0)

but it's doesn't give me result when i m selecting two country at a time

stabben23
Partner - Master
Partner - Master

Do You have Country as Dimension in Your chart?

nisha_rai
Creator II
Creator II
Author

Hi am not using any chart, i have to shoq all those information in a text box

nisha_rai
Creator II
Creator II
Author

Thanks,

But that is not what exactly i want, i want all those information in a text box

stabben23
Partner - Master
Partner - Master

Can you show us that textbox and expected output.

tresesco
MVP
MVP

May be like:

Capture.PNG

Capture2.PNG

Use Implicit set expression like:  Sum({<Country*={'India'}>}Sales)

trdandamudi
Master II
Master II

I don't think it is possible to show in the text box the way you want.

stabben23
Partner - Master
Partner - Master

try this, could be an solution:

=concat(Country,' ')& chr(10) & concat(Sales,' ')

nisha_rai
Creator II
Creator II
Author

Hi

   

IndiaUSUK
200300100

all are text box,when their is no selection we have filter as a country

when we select any Country such as India and UK then

   

IndiaUSUK
2003000
nisha_rai
Creator II
Creator II
Author

Thanks