Forum Discussion

03clacey's avatar
03clacey
New Member
1 year ago
Solved

ALLEXCEPT stops working as expected when i remove a field from my visual. What am i missing?

I'm trying to create a "Market Size" formula that calculates the relevant market size per brand.    "Market Size" is considered as the sum of sales for all countries that brand is sold in.   Exam...
  • lbendlin's avatar
    1 year ago

    ALLEXCEPT is a rather blunt tool. Try something more surgical like REMOVEFILTERS.

  • Deku's avatar
    1 year ago

    Var countries = values( 'Sales'[Country] )

    Return

    CALCULATE(

    SUM('Sales'[Sales]),

    ALLSELECTED(),

    countries

    )