Forum Discussion
rmcconnell340
Helper I
3 years agoRemove Filters Not Working in this DAX Formula
Hi, I am trying to remove one filter from this DAX formula but it is not working. I would use ALLEXCEPT() but there are so many other filters I need to keep that REMOVEFILTERS() seemed like the ...
- 3 years ago
Hi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
Group Differentiation Market = VAR _s = ADDCOLUMNS ( SUMMARIZE ( ALLSELECTED ( pbix_cr_quads ), pbix_cr_quads[upc] ), "@diff", CALCULATE ( [Mkt Differentiation], ALL ( pbix_cr_quads[product_level] ) ) ) RETURN AVERAGEX ( _s, [@diff] )
Jihwan_Kim
Super User
3 years agoHi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
Group Differentiation Market =
VAR _s =
ADDCOLUMNS (
SUMMARIZE ( ALLSELECTED ( pbix_cr_quads ), pbix_cr_quads[upc] ),
"@diff",
CALCULATE (
[Mkt Differentiation],
ALL ( pbix_cr_quads[product_level] )
)
)
RETURN
AVERAGEX ( _s, [@diff] )