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: 
aveeeeeee7en
Specialist III
Specialist III

Code Help Required

Hi Everyone

I need help on Coding Part.

See the Attachment.

4 Replies
sujeetsingh
Master III
Master III

Plz explain what you want

aveeeeeee7en
Specialist III
Specialist III
Author

I want to calculate

Opening MOB:

If(RecNo()=1,MOB-Joining+Leaving,Peek(OpeningMOB)-Joining+Leaving) AS OpeningMOB

Closing MOB:

(RecNo()=1,MOB,Peek(OpeningMOB)) AS ClosingMOB

But I am not getting the result.

vardhancse
Specialist III
Specialist III

Can you let us know what you are trying to achieve.

aveeeeeee7en
Specialist III
Specialist III
Author

Current I have found Current Month & Current Year Man On Board (MOB) in a Company and it is coming 998.

Out of this figure, I am applying logics to find the value of Man On Board (MOB) by using the formula

Man On Board (MOB)-Joining+Leaving  for different Month & Years.

which is not working.