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
jinokannen
Frequent Visitor

perpetual monthly employee allocation using DAX or M

I have an employee allocation table like below 

 

Team Assignment
MemberTeamActive startActive End 
Member 1Team 11/1/2019 
Member 1Team 21/15/20193/15/2019
Member 2Team 11/1/2019 
Member 3Team 12/15/2019 
Member 3Team 23/15/20193/31/2019
Member 3Team 33/10/2019 

 

and I need monthly allocation of each member with respect to each team as below

 

Expected result
MemberTeamMonthDefault Allocation
Member 1Team 1175%
Member 1Team 2125%
Member 1Team 1250%
Member 1Team 2250%
Member 1Team 1375%
Member 1Team 2325%
Member 2Team 11100%
Member 2Team 12100%
Member 2Team 13100%
Member 3Team 1250%
Member 3Team 2350%
Member 3Team 2350%
Member 3Team 31~56%
Member 3Team 32~16.5%
Member 3Team 33~27%

  few values at the end I ave given as as approximate (~), and the idea is to get a DAX or M which is smart enough to populate a table as above. Please help. Thanks in advance!!

3 REPLIES 3
Greg_Deckler
Super User
Super User

Generally when I have done this, there is additional information involved like how many actual hours an employee is spending on each project or perhaps some kind of default allocation table perhaps? From the information given, it seems like there would have to be some magical assumptions made to get to what you are looking for. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg, Thanks for the response. Yes i missed out that inforrmation in my question . Actually, if a resource is split in to 3 teams, its considered as 33% (nothing like 20%, 30%, 50% etc.)  from that day onwards ( if into only 2 teams, then 50:50). I know its a odd scenario, still if I could find a DAX/M solution for this, the admin job ( to update in Project management tool) become easy from calculating the percetage of allocation every time as it changes frequently across the year. And here always the allocation is equally distributed for a particular employee on all the teams he/she participating for that period of time. 

JFYI ...For my case, there are more than 200 resources and 23 active teams. 

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.