cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
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:

 

EMPLOYEEWEEK STARTWEEK END
John10/26/202011/1/2020
John11/9/202011/15/2020
Sam11/9/202011/15/2020
Beth11/23/202011/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
Microsoft
Microsoft

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
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])

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...



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!

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors