Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Kohli
Creator II
Creator II

Sub Count in a field

I have filed like

City

Bangalore

Hyderabad

chennai

chennai

chennai

Bangalore

Hyderabad

chennai

I want ouput

Bannglore- 2

Chennai- 4

hyderabad-2

6 Replies
Anil_Babu_Samineni

Are you want this in script / 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
Kohli
Creator II
Creator II
Author

In UI

giovanneb
Creator II
Creator II

Hi, Follow

tmpCity:

LOAD * Inline [

City

Bangalore

Hyderabad

chennai

chennai

chennai

Bangalore

Hyderabad

chennai];

City:

LOAD

City,

count(City) as Count

Resident tmpCity

Group by City;

DROP Table tmpCity;

giovanneb
Creator II
Creator II

!f1.png

vamsee
Specialist
Specialist

Script:

LOAD

City,

City &'-'& Count(City) as New_Column

Group By City;

Anil_Babu_Samineni

Check giovanneb reply, If that helps? But, The way your question is different. If it not suits, Can i take little more explanation from you?

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