Forum Discussion
cghanta
1 year agoHelper I
Average 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
1 year agoSuper User
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.
cghanta
1 year agoHelper I
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