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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Counting duplicate facts

Lets take an example of a table having three columns: City ID(Unique), People, Frequency(to be calculated)

City IDPeopleFrequency
1302
2302
3451
4553
5553
6553
7201
8112
9112

I want the Frequency column to be populated with count as shown above. How can I acheive this?

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

     Data:

     Load CITY_ID,People From xyz;

     Left join(Data)

     Load People,Count(People) as Freq resident Data group by People;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
er_mohit
Master II
Master II

Try this

aggr(NODISTINCT Count(People),People)