Forum Discussion
Weighted Average every 24 hours
- Anonymous6 years ago
Hi Yak2792 ,
First, please add one Index field for the related table in Power Query Editor. Then create a calculated column to get the average of Weighted Bonus:
Weighted Bonus = DIVIDE ( CALCULATE ( MAX ( 'Bonus'[Bonus Calculation] ), FILTER ( ALL ( 'Bonus' ), 'Bonus'[Index] - 1 = EARLIER ( 'Bonus'[Index] ) ) ) * 12 + 'Bonus'[Bonus Calculation] * 12, 24 )add index column
create calculated columnBest Regards
Rena
Hi Yak2792 ,
Could you please provide the structures of these three table and sample data(exclude sensitive data) using screen shots just like the one in below screen shot? Please also provide the formula if there is any measure be created. It is better if you can provide your sample PBIX file. I need to check if there are other feasible ways to achieve your requirement based on the above information you provided.Thank you.
table structures and sample data
Best Regards
Rena
So I ended up finding a table similar to the one you listed above containing the shift by shift bonus numbers. I followed your instructions above and everything works great now. Thank you so much for your help, I will mark your post above as the solution.