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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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?

Labels (1)
2 Replies
kaushiknsolanki
MVP
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)