Forum Discussion
cghanta
Helper I
1 year agoAverage Calculation
I have a table UPS and a column Age The Power BI has a slicer based on column location I want to find Average Age from the column Age, ignoring the slicer and display the measure in the report...
- 1 year ago
Hi cghanta
Can you please try the below DAX.
CALCULATE(
AVERAGE(UPS[Age for Avg]),
ALL(UPS[Location]),
UPS[Age for Avg] <> 0
)If this answers your question, kindly mark it as the solution.
- 1 year ago
Both the solutions from xifeng_L and mdaatifraza5556 worked, Thank you both.
I am not sure how to select both the replies as accepted solution
mdaatifraza5556
Super User
1 year agoHi cghanta
Can you please try the below DAX.
CALCULATE(
AVERAGE(UPS[Age for Avg]),
ALL(UPS[Location]),
UPS[Age for Avg] <> 0
)
If this answers your question, kindly mark it as the solution.
cghanta
Helper I
1 year agoBoth the solutions from xifeng_L and mdaatifraza5556 worked, Thank you both.
I am not sure how to select both the replies as accepted solution