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

How can we show opening and closing Head count MOM

Hi All

In one of the requirement I have to show opening and closing emp headcount on month on month basis in my dashboard . also I have to develop the water fall chart to show the current Month and current year opening and closing Emp headcount with hiring and leaving of that month . am using master calendar and on selection of that the chart will filter out accordingly .  formula to calculate the opening and closing are given below

Opening balance = closing of the last month

Hiring = Current month joining

Leaving = Current month Leaving

Closing - Opening + Joining -leaving

can someone help me to achieve this requirement

MonthOpening BalanceHiringLeavingClosing
Apr-1712341051239
May-171239541240
Jun-17124020101250
Jul-1712502541271
Aug-17127120101281
Sep-17128110101281
Oct-17128140201301
Nov-1713011051306
Dec-1713062581323
Jan-18132332121343
Feb-1813431261349
Mar-18134928201357
Apr-1813575201342
May-181342951346
Jun-181346001346

Attaches file have content below things EIN - Employee Code Flag Sal - for Active emp along with new status 'Active' Left - Leaving Joining - for New joining

Sorry use this data

20 Replies
ajayagraa
Contributor
Contributor
Author

are you checking ?

sunny_talwar

Check now...

ajayagraa
Contributor
Contributor
Author

this is working only normal year but not working financial year calendar . can we do something in script side ?

sunny_talwar

I don't see any field named Financial year in the sample file your provided . What do you expect me to do? Read your mind my friend to know what you might have and what you might want. Please provide all the details to get better help

Best,

Sunny

ajayagraa
Contributor
Contributor
Author

sunny , could you please create a financial year and then test your code ?

sunny_talwar

Sorry, I cannot do your work. If you need help then please do your part and I will do mine. If you don't want to... then let's just hope someone else might be willing to help.

Best,

Sunny

ajayagraa
Contributor
Contributor
Author

Thanks buddy for your great help . I will try to resolve the rest part at mt own .

Thanks again

Ajay Verma

sunny_talwar

No problem at all. Please close this thread when you have your answer.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny

Kunal12164
Partner - Contributor
Partner - Contributor

Is any way i do all the logic in scripting rather than frontend calculation to get a same output?

PrashantSangle

@Kunal12164 , to get more help, I suggest , create new post. 

Also provide some data to get more accurate answer. Without having knowledge of your data, it is difficult to answer on question. 

As per my experience, most of the time yes it possible to move front end logic in backend.

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂