cancel
Showing results for
Did you mean:
Resolver I

## How to show the percent of employees who had 2 or more evaluations on a rolling 4 week timeline?

I have a table that has data on evaluations performed on employees in this format:

 EMPLOYEE WEEK START WEEK END John 10/26/2020 11/1/2020 John 11/9/2020 11/15/2020 Sam 11/9/2020 11/15/2020 Beth 11/23/2020 11/29/2020

The team goal is that each employee receives a minimum of 2 evaluations on a rolling 4-week basis. I'm trying to create a measure that returns the % of employees that received 2 or more evaluations on a rolling 4-week basis. John would count as 100% because he received 2, but Sam and Beth would be 0% because they each only had 1 evaluation. How could I create a measure to show this rate?

2 REPLIES 2
Community Support

Hi @ninos-shiba ,

It's still not very clear. Can you share some sample data and the expected result in a sample .pbix file to have a clear understanding of your question?

You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.

Best Regards,

Yuna

Super User IV

@ninos-shiba , Have date table with following week columns

Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)
Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)

Join with week start and have measures like

This Week = CALCULATE(count('Table'[EMPLOYEE]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(count('Table'[EMPLOYEE]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))
Last 4 weeks = CALCULATE(count('Table'[EMPLOYEE]), FILTER(ALL('Date'),'Date'[Week Rank]>=max('Date'[Week Rank])-4 && 'Date'[Week Rank]<=max('Date'[Week Rank])))

employees who had 2 or more evaluations = countx(filter(summarize('Table','Table'[EMPLOYEE], "_1", [Last 4 weeks]), [_1]>=2),[Employee])

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Announcements

#### Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group