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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
narender123
Specialist
Specialist

not repeating employee no

Hi all,

I want to count :

like if a employee no (10) entered in jan then our count is 1.

Same employee no (10) entered in feb then the count remains 1.

If a employee no (11) present in feb but not in jan then count in feb 2  means 1 for jan(employee no 10 ) + 1 for feb (employee no 11 ) --------up to dec .

So a employee count remains same if he is repeating in more than 1 month.

I want this result in monthly basis.

Month     employee count

jan                    1

feb                     2         

march                 7

-

-

dec                  68

I used: count({<employee_status='p'>}distinct employee_no)

its showing wrong result as distinct work as monthly basis distinction for employee no but i want to check distinct yearly of employee no for monthly dimention.    


Thanks

Labels (1)
6 Replies
Not applicable

Can u paste your app?

narender123
Specialist
Specialist
Author

No i am working directly on server.

Its not possible.

Do u have any idea to sort out this?

Thanks,

avinashelite

try like this:


Aggr(count({<employee_status='p'>}distinct employee_no),Month)

narender123
Specialist
Specialist
Author

Hi Avinash,

Its already giving distinct against month .but i want distinct against year but showing monthwise dimention.

Thanks

avinashelite

then you need to have Year as the dimension as well otherwise it won't give correct result and it will be contradictory

too. Add Year as the dimension and try like this

Aggr(count({<employee_status='p'>}distinct employee_no),Month,Year)

vikasmahajan

pfa

vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.