Forum Discussion
Moving Average
Hi everyone,
I wanna calculate Average Moving on by month.
If there're another Date in NOV , that would be the calculation of the Average from Jan to Nov.
Do you have any idea ? I tried the calculation above , looks it's not what i'm looking for.
Thanks you so much for your all response.
Best Regards,
Chanleakna Hang
You can take a look at this article. You can also try with following DAX formula and you can adjust it based on your table structure. Attached PBIX file can be a reference.
Average EUR = CALCULATE ( AVERAGE ( Table1[EUR] ), FILTER ( ALL ( Table1[Date] ), Table1[Date] <= MAX ( Table1[Date] ) ), VALUES( Table1[Description] ) )Best Regards,
Herbert
4 Replies
- v-haibl-msftMicrosoft Employee
You can take a look at this article. You can also try with following DAX formula and you can adjust it based on your table structure. Attached PBIX file can be a reference.
Average EUR = CALCULATE ( AVERAGE ( Table1[EUR] ), FILTER ( ALL ( Table1[Date] ), Table1[Date] <= MAX ( Table1[Date] ) ), VALUES( Table1[Description] ) )Best Regards,
Herbert- Chanleakna123Post Prodigy
- Chanleakna123Post Prodigy
v-haibl-msft hi , looks like the result is not correct from my side.
I have the table above.
Can you help me to check ?