Forum Discussion
DAX help
- 5 years ago
Hi Anonymous ,
Try the following formula:
Measure = IF( ISFILTERED('Table'[Year]), [Average], AVERAGEX( ALLSELECTED('Table'[Year]), [Average] ) )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.
you can put i guess in the filter to deselect the blanks projects or years if this is what is causing the problem. Are you using a simple average formula, maybe you need to use one that is filtering the data based on a grouping?
- Anonymous5 years agoNot applicable
Am using divide function to calucate the average formula.
- v-kkf-msft5 years agoCommunity Support
Hi Anonymous ,
Try the following formula:
Measure = IF( ISFILTERED('Table'[Year]), [Average], AVERAGEX( ALLSELECTED('Table'[Year]), [Average] ) )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.