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.
Hello,
I am looking to make a rolling weighted avg in Dax. The calculation will always start with today and if before just 0. If today it will be column c. Otherwise the calculation as shown will depend on the average from the day before combined with the average of what came in today.
Column H = IF(A9=I$1,C9,H8*E9+D9*C9)) Is the Excel formula
Hi @Brechtzi
You need to use Power Query to calculate that, and please read this article, it will help you
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Date Index
3/11/2022 | 7 | 3.879786037 | 0 | 1 | 3.879786037 |
3/12/2022 | 8 | 1 | 0.065860096 | 0.934139904 | 3.690123052 |
3/13/2022 | 9 | 1.928234957 | 0.090937299 | 0.909062701 | 3.529901708 |
3/14/2022 | 10 | 1.131091788 | 0.105356317 | 0.894643683 | 3.277171929 |
3/15/2022 | 11 | 1 | 0.017880541 | 0.982119459 | 3.236454863 |
3/16/2022 | 12 | 2.466016437 | 0.065829139 | 0.934170861 | 3.185737565 |
3/17/2022 | 13 | 1.312716137 | 0.212616249 | 0.787383751 | 2.787502775 |
3/18/2022 | 14 | 1.963932505 | 0.199346254 | 0.800653746 | 2.623327127 |
3/19/2022 | 15 | 1.72541476 | 0.134571979 | 0.865428021 | 2.502493282 |
3/20/2022 | 16 | 1.439589484 | 0.093264944 | 0.906735056 | 2.403361619 |
3/21/2022 | 17 | 1.082738258 | 0.164906848 | 0.835093152 | 2.185581783 |
3/22/2022 | 18 | 6 | 0.161192881 | 0.838807119 | 2.800438845 |
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
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 |
---|---|
37 | |
25 | |
19 | |
14 | |
8 |
User | Count |
---|---|
69 | |
48 | |
44 | |
19 | |
15 |