Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate a turnover

Hi Everyone,

I have a table like below and I want to calculate the turnover of ACTORID per period. (ACTORID is the name of the employees)

So I want to do a bar chart with month in dimension for exemple and the turnover in the expression.

Could any one  help me please? Thanks you.

ACTORIDPeriod
BBT40909
BBT40940
BBT40969
BMS40909
BMS40940
BMS40969
BPI40909
BPI40940
BPI40969
BSK40909
BSK40940
BSK40969
CAN40909
CAN40940
CAN40969
CCN40909
CCN40940
CCN40969
CDR40969
DCE40909
DCE40940
DCE40969
DCS40909
DCS40940
DCS40969
FVS40940
HES40940
HSN40909
HSN40940
HSN40969
IJS40909
IJS40940
IJS40969
ISS40909
ISS40940
ISS40969
KRS40909
KRS40940
KRS40969
KWS40909
KWS40940
KWS40969
LLS40909
LLS40940
LLS40969
MLT40909
MLT40940
MLT40969
MSN40940
MSN40969
NSN40909
NSN40940
NSN40969
1 Solution

Accepted Solutions
consenit
Partner - Creator II
Partner - Creator II

Hi there.

Assuming that for each employee the minimum date is the date joined, and the maximum date is the date left, you can use calculated dimensions:

=DATE(AGGR(MIN(Period), ACTORID))

and:

=DATE(AGGR(MAX(Period), ACTORID))

See example attached.

Kind regards,

Ernesto.

View solution in original post

7 Replies
its_anandrjs

Hi,

In load script make change like

LOAD

ACTORID,   

Period,

Month(Date(Period)) as Month,

Date(Period) as Date

From Source;

Regards

Anand

Not applicable
Author

Hi Ben,

have a look at the attached, should give you an idea of how to do this

hope that helps

Joe

Not applicable
Author

Ok thank you for theses ansewers but i look for the formula of turnover. I have only these datas and i want to know when how much employees get in and how much get out.

Not applicable
Author

you only have those two fields? You'll need some fact data in order to calculate anything (in my example I added a value field for instance).

Not applicable
Author

Yes I have only those two fields. The period is a date when the ACTORID have worked. So With these date i want to deduct the time when he came in the company and when he left and count them, to calculate the turnover.

Not applicable
Author

Not sure I follow what you are trying to calculate, this is staff turnover you are looking for? How would you determine when an employee joined and left?

consenit
Partner - Creator II
Partner - Creator II

Hi there.

Assuming that for each employee the minimum date is the date joined, and the maximum date is the date left, you can use calculated dimensions:

=DATE(AGGR(MIN(Period), ACTORID))

and:

=DATE(AGGR(MAX(Period), ACTORID))

See example attached.

Kind regards,

Ernesto.