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.
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?
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
@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...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |