Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Help with DAX to calculate Resource allocation %

Hi Team

 

I have twotables. I need help in DAX to create a heatmap showing resource allocation %.. How each resource is allocated in each month based on their plan hours and capacity hours.

 

SL.NProject NameResource NamePlanned StartPlanned FinishActual StartActual FinishCapacity hoursPlan hours  Actual Hours
1Project ASam8-Feb-2228-Feb-228-Feb-2228-Feb-22160140120
2Project BTed1-Mar-2231-Mar-221-Mar-22 184160 

 

 

Capacity Table             
SL NoResource NameJanFebMarAprMayJunJulAugSepOctNovDec
1Sam160160184160172160184184160160160160
2Ted160160184160172160184184160160160160

2 Replies

  • There's a lot to unpack here.  Your capacity table needs to be unpivoted to make it useful.  You may also want to add the year to the timestamp

     

    Next you need to decide how you want to handle projects that complete in less than a month (like project A) or projects that stretch over multiple months.  I assume your capacity numbers are based on working days in each month? If so then you will want to add a calendar table that indicates that.

     

    Your sample data will not show a heatmap. only a color blob for Sam in February and Ted in March.  For a real heatmap you may want to add some more project sample data.