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

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session Drive Data Culture with Power BI: Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors