Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analysis to determine count

how to write set analysis for the count of city in a table with columns name,city,mobile number etc.

now need set analysis code for the count for city

1 Solution

Accepted Solutions
trdandamudi
Master II
Master II

For what ever reason, if you need the count of a particular city in set analysis you can use the below expression:

For example if you need count for the city 'Pune' then use the below expression:

Count({<City={'Pune'}>}  City)

If you want count for both "Pune" and "Hyderabad" then as below:

Count({<City={'Pune,Hyderabad'}>}  City)


Hope this helps....



View solution in original post

6 Replies
trdandamudi
Master II
Master II

Can you be little more specific because if you just want a count then you can use =Count(City). Why do you think you need set analysis. Can you give an example please...

Anonymous
Not applicable
Author

for example there are cities like pune,hyderabad,mumbai etc in city column.

then need count for particular city like pune for example in set analysis

i was asked that question.,

Not applicable
Author

Hi Kiran

Elaborate more on your requirement with sample data and expected Output so that we will help you

trdandamudi
Master II
Master II

For what ever reason, if you need the count of a particular city in set analysis you can use the below expression:

For example if you need count for the city 'Pune' then use the below expression:

Count({<City={'Pune'}>}  City)

If you want count for both "Pune" and "Hyderabad" then as below:

Count({<City={'Pune,Hyderabad'}>}  City)


Hope this helps....



Anonymous
Not applicable
Author

that helps..

thank you Thirumala Dandamudi

trdandamudi
Master II
Master II

You are welcome and if you think you got the right answer can you please close the thread by selecting appropriate option.

Thanks