Forum Discussion

Applicable88's avatar
Applicable88
Icon for Impactful Individual rankImpactful Individual
4 years ago
Solved

Alternative to allexcept / avoiding using calculate modifiers

Hello,   Allexcept as an Calculate modifier, can be used for example to sum sales, but leavin one filter like "Category".    But in my own experience calculate functions can run into limitations....
  • v-jingzhang's avatar
    v-jingzhang
    4 years ago

    Hi Applicable88 

     

    You can try measures like 

    Measure 1 =
    SUMX (
        FILTER (
            ALL ( 'Salestable' ),
            'Salestable'[Categories] IN VALUES ( 'Salestable'[Categories] )
        ),
        'Salestable'[Sales]
    )
    

    Or 

    Measure 2 =
    SUMX (
        FILTER (
            ALL ( 'Salestable' ),
            'Salestable'[Categories] = SELECTEDVALUE ( 'Salestable'[Categories] )
        ),
        'Salestable'[Sales]
    )
    

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.