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.
Hi,
I am looking to create a new measure which will give me the weighted moving average YTD
I have a sample date column which is used in a slicer to select a period (this is the last day of the month) e.g 28/02/2021
I have a weighted avg bfat measure and a ytd coll litres measure already created.
I am looking to create a weighted avg bfat ytd measure and to replicate the excel formula in power bi :
=SUMPRODUCT(Weighted Avg Bfat YTD,Coll Litres YTD)/SUM(Coll Litres YTD)
TIA
Hi @yaman123 ,
According to my understanding, you want to calculate Weighted Average in DAX, right?
I believe you can get more hints from these links:
Weighed Average DAX Expression
DAX - Weighted Averages: Another Use of SUMX() | P3 Adaptive
Weighted Average in Power BI - Goodly
If these do not make sense, please provide some data samples and the expected output.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-eqin-msft
I need to calculate the weghted moving average YTD.
I have a date slicer - sample date which is selected
I have a measure which is giving me the weighted avg bfat -
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |