Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
nizamsha
Specialist II
Specialist II

Calculating the head count base on the selection

Hi All,

I Am Facing the Issue for calculating the headcount based on the selection .Here by attached the sample xls .please provide solution me

3 Replies
Not applicable

If you didn't specify any condition by default it will give value according to current selection only.

try count(ID). this will give you the value for your current selection.

nizamsha
Specialist II
Specialist II
Author

Hi All

For calculating the head this what i done and this what is in excel

3 column i have

Let vStartDate=MakeDate(2014,1);

Let VMinDate=MonthEnd(Today());

EMPID,

DOJ,

Termination,

For startdate i have a condition like this if(DOJ< vStartDate,vStartDate,DOJ) as StartDate

for EndDate i  Have Comdition like this if(len(Term Date)=0, vEndDate,Term Date) as EndDate

for end date i dont want to take to an consideration who got terminate before the start year i only want to check active ones

after getting the startdate and enddate i want to generate a random month between startdate and enddate for the employee and also create a status 1 if he is active if he is not active mean 0

vikasmahajan

Did you got solution??????????

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.