Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ninos-shiba
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
v-yuaj-msft
Community Support
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

amitchandak
Super User
Super User

@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...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.