Forum Discussion
how to find average
- Anonymous2 years ago
Hi amethyst_tang_2 ,
Try this DAX to create a measure:Measure = AVERAGEX( FILTER( ALL('Table'), 'Table'[Released_Year] >= 2010 && 'Table'[Released_Year] <= 2020 ), 'Table'[Gross] )And the final output is below:
Or you can build a slicer to filter the data from 2010 to 2020:
And now you can just use this DAX to calculate:
Measure 2 = AVERAGE('Table'[Gross])The output will change dynamically according to the slicer you select:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
https://docs.google.com/spreadsheets/d/17_iuqyIl3fk_xfUkgb9fQ-9tJKvwkYvG/edit?usp=sharing&ouid=117276072126307632244&rtpof=true&sd=true
hi the dataset link is here. in summary, i would like to filter out the "released year" to the latest 10 years (2010 to 2020) and find the average of of the gross from 2010 to 2020.
hi sample data
- Anonymous2 years agoNot applicable
Hi amethyst_tang_2 ,
Try this DAX to create a measure:Measure = AVERAGEX( FILTER( ALL('Table'), 'Table'[Released_Year] >= 2010 && 'Table'[Released_Year] <= 2020 ), 'Table'[Gross] )And the final output is below:
Or you can build a slicer to filter the data from 2010 to 2020:
And now you can just use this DAX to calculate:
Measure 2 = AVERAGE('Table'[Gross])The output will change dynamically according to the slicer you select:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.