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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
psk180590
Creator III
Creator III

Columns with conditional removal of data

Hello All,

I have my sample data in the below format.

IDREGStatePresent
1AA1004
1AA1005
1AA1006
1AA1003
2AB1101
2AB1104
3CR1306
5VX1208
6GG1609

I'm looking to generate 4 new Columns here:

1. Count of All Distinct ID's in the country : 9 (Should now change even when a REG or State is selected)

2. Count of Distinct ID's per State  Ex: State 100 is 4 (Should not change when REG is selected)

3. Sum of Present in the Country :46 (Should now change even when a REG or State is selected)

4. Sum of Present per State Ex:State 100 has 18 (Should not change when REG is selected)

I have attached my sample app also along with the sample data and Expected result.

Note: I want this columns to be generated in the Script not in the Application using Set Analysis.

TIA!!

16 Replies
Anil_Babu_Samineni

We have some limits in scripting. But, In fact we doesn't have concept ignore field concept in Script level. Hence, It can not be done. Can we know the reason why it is not possible in UI?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
OmarBenSalem

psk180590‌ ; did this do the trick?

psk180590
Creator III
Creator III
Author

Thanks much, the solution is almost perfect.

The Sum(Present) works perfectly. Only the Count doesn't seem to be satisfied yet

psk180590
Creator III
Creator III
Author

If possible can you please share the sample app you created

psk180590
Creator III
Creator III
Author

Made slight modifications to the script and it works perfectly. Thanks!!

OmarBenSalem

good to know !

psk180590
Creator III
Creator III
Author

Hello omarbensalem

I'm experiencing some problems with particular selections in my app. If possible can you share the Test/Sample you created?

Thanks

Sai.