Forum Discussion
Average After Slicer Input
- 6 years ago
Hi PiyushBQ ,
Try create measure like this:
Measure = CALCULATE(AVERAGE('Table'[Value]),ALLSELECTED('Table'))Or calculated column:
Column = CALCULATE(AVERAGE('Table'[Value]),ALLEXCEPT('Table','Table'[Sector]))Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PiyushBQ wrap SUM in CALCULATE
Avg = AVERAGEX ( Table, CALCULATE ( SUM ( Table[Column] ) ) )
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
Thank you for taking the time out parry2k .
I tried doing it but it didn't work. Please check the screenshot.
- PiyushBQ6 years ago
Helper I
Hi parry2k I had previously written it as a measure.
But adding it as a column was fraught with problems too. Here's a screenshot of the error when added as a column.- V-lianl-msft6 years ago
Community Support
Hi PiyushBQ ,
Try create measure like this:
Measure = CALCULATE(AVERAGE('Table'[Value]),ALLSELECTED('Table'))Or calculated column:
Column = CALCULATE(AVERAGE('Table'[Value]),ALLEXCEPT('Table','Table'[Sector]))Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.