Forum Discussion
Last 6 month weighted average
I tried to create a measure of last 6 month weighted average days, the measure is as follows;
Last 6 months Wt Avg =
But when I manually checked for individual accounts for the last 6 months and it does not match all.
Is there a problem with the measure and what needs to be corrected if so.
2 Replies
- amitchandak
Super User
Avivek , seem correct, Try like
Last 6 months Wt Avg =
VAR enddate = EOMONTH('LAST REFRESHED'[Data Last Refreshed],-1)
VAR startdate = EOMONTH(enddate,-6)+1VAR wtavg =
CALCULATE( [Wt avg 2],
FILTER('DATE','DATE'[Calendar Date]>= startdate && 'DATE'[Calendar Date]<= enddate)
) - V-lianl-msft
Community Support
Hi Avivek ,
Refer to this thread:
https://community.powerbi.com/t5/Desktop/6-months-moving-average/td-p/250675
If the problem persists,could you share the sample pbix via cloud service like onedrive for business?
Please mask any sensitive data before uploading
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.