The business logic is to arrive at the overall score for a manager as depicted in the prototype below, using LM 3 as the manager here:
Can one help or point me in the right direction (if a video on EDNA already exists) to iterate over the variable / virtual table to calculate for each month for each row, the overall score for selected manager by:
Dividing the weight of each Employee ID by the total weights of employee reporting in the same manager to obtain âscaled weightâ
Then multiply the result of step 1 above with the value of the column âLM team weightâ to give the column âActual weightâ
And finally, multiply result of âActual weightâ with values in column âScoreâ, row by row
The final step is to then divide the result of step 3 with the total of value of column âScoreâ
There is one âIFâ statement logic: if an employeeâs manager is the same as the selected manager, no transformation is done. that is, Step 1 is ignored & the value of âLM team weightâ will be 100%.
I have attached both sample PBIX file & the Excel working prototype for clarity.
Think I messed up the last step but figured you could correct that
Iâm having a hard time validating the numbers because the example depicted above doesnât seem to match the sample you were working on, so Iâll leave that to you.
Anyway I hope this will bring you a step closer to a solution.
Once again, massive for your assistance. Indeed, your insights & solution brought me to the solution!
I must say I once tried creating a table using variables. Didnât work for me at the time. I was surprised it worked this time. I guess I must have done something wrong back then.
Anyway, to include step 1 per business logic, I added an IF statement at the âscaled weightâ & âActual weightâ statements to check if manager ID equals manager in focus. It worked fine.