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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
d_brew
Frequent Visitor

Group values in calculated column in one table by static measure derived from another table

 

MngAuditsAvgDayRemaining = ROUNDUP([AuditsMonthRemaining]/[MngWorkDaysRemainingMonth], 0)

This measure gives me the the average number of audits needed by each manager for each work day until the end of the month to hit our target goal (i.e. if each of the 7 managers does 11 audits a day over the next 14 work days including today remaining in February, we will hit our goal.

 

When used in a Card it gives me the expected value (below).

CorrectDailyAvgRemaining.PNG

I have a table that contains each employee, ranked incrementally by number of Audits remainging. 

AuditRank.PNG

 

What I need to do is create a calculated column that assigns a manager to each employee by their rank. For example, employees ranked 1-11 would have manager 1's name, 12-22 would have manager 2's name, 23-33 would have manager 3's name, all the way through manager 7 who would be assigned empoyees ranked 67-77. The idea here is to give each manager a daily target of audits to complete so that the indivduals with the highest priority(lowest amount of audits complete this month which results in them having the higher rank) are audited first, and we complete the necessary amount of audits each day to hit our goal by the en of the month. 

 

The relationships are listed below. What should happen is that the TS_Roster table contains a column where the top 77 ranked employees (as calculated at this very moment) have a managers name assigned to them so that each manager can filter by their name to see who they need to audit today. 

 

DataModel.PNG

1 REPLY 1
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@d_brew,

Could you please share dummy data of your tables and post expected result based on the dummy data here?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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