Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Michael15
Contributor
Contributor

Transform Table to see how many people have how many instances

I have a table:

Employee ID Count Instances
100 2
101 3
102 2

103

4

 

I would like to transform the table to see following:

Count Instances Count of Employee ID's
2 2
3 1
4 1
   

 

How could I achieva that?

Labels (1)
5 Replies
Chanty4u
MVP
MVP

Just use 

Count ( employee id)

Michael15
Contributor
Contributor
Author

I now have that in last column. But need to have summarized by Sum Instances. I would like to remove Employee ID and then see for example for 8 (sum Instances) 6, 10 = 4, 11 = 1 etc. Any idea?

Michael15_0-1710672229791.png

 

qv_testing
Specialist II
Specialist II

Count(EmployeeID)

qv_testing_0-1710688980417.png

if you are expecting something else, provide some sample data and output

 

vinieme12
Champion III
Champion III

use Instances as dimension and count(distinct EmployeeID) as  measure

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Michael15
Contributor
Contributor
Author

Dear Vinieme12

My issue. The instances field is originally a field with general Instance = 1. So if employees have multiple instances, then the original sheet has multiple 1 for that employee. I needed to create a Count (Instances) field to sum instances by employee ID. However I can not add this count (instances) field to a table. It always bring me a red error. Any Idea to solve that?