Forum Discussion
Different average based on filter
- 5 years ago
Hi Anonymous ,
Try the following formula:
AVG_Points = AVERAGEX( SUMMARIZE( ALLSELECTED(CL_PROD), CL_PROD[Tech_ID], "t", SUM( CL_PROD[Points] ) ), [t] ) AVG_Points_Filter = CALCULATE( AVERAGE(CL_PROD[Points]), ALLSELECTED(CL_PROD), GROUPBY( CL_PROD, CL_PROD[WO_Type] ) )Does it match the output you want?
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous , the filter should work here. Trying to get Avg on Day total
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- amitchandak5 years agoSuper User
Anonymous , upload on Onedrive or dropbox and share a link
- Anonymous5 years agoNot applicable
- v-kkf-msft5 years agoCommunity Support
Hi Anonymous ,
Try the following formula:
AVG_Points = AVERAGEX( SUMMARIZE( ALLSELECTED(CL_PROD), CL_PROD[Tech_ID], "t", SUM( CL_PROD[Points] ) ), [t] ) AVG_Points_Filter = CALCULATE( AVERAGE(CL_PROD[Points]), ALLSELECTED(CL_PROD), GROUPBY( CL_PROD, CL_PROD[WO_Type] ) )Does it match the output you want?
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.