Forum Discussion
cottrera
2 years agoPost Prodigy
DAX Ignore filter context
Hi I have the following table UPRN High or Low MPV_ NPV Net Rent_ 18 High £122,768.31 26 High £109,681.07 92 High £116,317.17 109 High £81,850.06 117 High £119,385.69 ...
- 2 years ago
Hi cottrera ,
The ALL function can remove any filter context. You can try below measure:
Avg NPV_ = CALCULATE( VAR NetRentNPV = SUM('NPV Table_'[NPV Net Rent_]) VAR Prop = COUNTROWS('NPV Table_') VAR AvgNPV = DIVIDE(NetRentNPV, Prop) RETURN AvgNPV, ALL() )Please mark this as solution and give Kudos, if this helps resolve your issue.
Thank you~
xifeng_L
2 years agoSuper User
Hi cottrera ,
The ALL function can remove any filter context. You can try below measure:
Avg NPV_ =
CALCULATE(
VAR NetRentNPV = SUM('NPV Table_'[NPV Net Rent_])
VAR Prop = COUNTROWS('NPV Table_')
VAR AvgNPV = DIVIDE(NetRentNPV, Prop)
RETURN
AvgNPV,
ALL()
)
Please mark this as solution and give Kudos, if this helps resolve your issue.
Thank you~
- cottrera2 years agoPost Prodigy
Thank you for your quick response