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

Employee wise counts

Dear all,

I have below data and i want employee wise counts based on date.

 

Emp NameDate
A12/12/2017
A9/12/2017
B10/12/2017
C4/12/2017
C4/12/2017
C4/12/2017

so result should be as below -

  

Emp NameCounts
A2
B1
C

1

Please help me in the same.

1 Solution

Accepted Solutions
devarasu07
Master II
Master II

Then method 1 & Anil suggestion should work. let us know if u have any issue. tks

View solution in original post

4 Replies
Anil_Babu_Samineni

May be Count(DISTINCT Date)

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
devarasu07
Master II
Master II

Hi,

do u wanted to do in front end or back end?

method 1: using front end

Dimension:

Date

Measure:

count(distinct Date)

method 2: back end script

Emp_Count:

LOAD * INLINE [

    Emp Name, Date

    A, 12/12/2017

    A, 9/12/2017

    B, 10/12/2017

    C, 4/12/2017

    C, 4/12/2017

    C, 4/12/2017

];

join

load [Emp Name],

Count(DISTINCT Date) as EMP_Count Resident Emp_Count group by [Emp Name];

Capture.JPG

bhuprakash
Creator II
Creator II
Author

Dear Devarasu,

I am doing it with front end.

devarasu07
Master II
Master II

Then method 1 & Anil suggestion should work. let us know if u have any issue. tks