How to calculate Experience of a person as each month changes using a slicer

Mavericks334

Active Member
Joined
Jan 26, 2011
Messages
280
Hi

I have two table, one is the joining date table and Month-end table. I am trying to create a measure that would give me the experience of the person, when i use the month end table as a slicer and does not work.

Measure: Monthend[Month_End_Date]-Tenure[Joining_Date].

It does not work. I have also created a relationship between both these tables.

Any suggestions what changes i could make to get it to work.

Regards,
Renato.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Code:
=(if(countrows(values(MA_Dates[Month_End_Date]))=1,
     if(values(MA_Dates[Month_End_Date])<=LASTDATE('Employee Details'[Joining_Month_End])
 &&values(MA_Dates[Month_End_Date])>=dateadd(lastdate('Employee Details'[Joining_Month_End]),(max(Period[Period])*-1),month),calculate(DATESBETWEEN('Employee Details'[Joining_Month_End],dateadd(lastdate(MA_Dates[Next_Month_Start_Date]),-1,MONTH),lastdate(values(MA_Dates[Month_End_Date]))))*-1)))*-1

This is the code i tried by creating an additional table called MA_Dates i get blanks
 
Upvote 0
Hi,

I Found partial solution for the experience.

=(CALCULATE((MAX('SharePoint Data'[Month_End])-MAX('Employee Details'[Joining_Month_End])),USERELATIONSHIP('Employee Details'[Employee Name],'SharePoint Data'[Reviewer])))/360.

=CALCULATE((YEARFRAC(MAx('Employee Details'[Joining_Month_End]),MAx('SharePoint Data'[Month_End]),1)),USERELATIONSHIP('Employee Details'[Employee Name],'SharePoint Data'[Reviewer]))

I have tired both the measures and for few employees who joined in 2001. I should get an experince of 11 yrs i get experience of 101. Which is incorrect.

Any Suggestions, what changes i could make.

Regards,
Renato.
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,589
Members
452,653
Latest member
craigje92

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top