Forum Discussion

rmcconnell340's avatar
3 years ago
Solved

Remove 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 ...
  • Jihwan_Kim's avatar
    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] )