Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

ALLEXEPT function doesn't work with date slicer

    AAA = CALCULATE(SUMX(Impaye,Impaye[Nombre Impaye]), ALLEXCEPT(Impaye,Impaye[IdPretAide]))  
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    Is [Nombre Imapye] a measure or a column?

    If it's a measure, please try

    AAA =
    SUMX (
        FILTER ( ALL ( Impaye ), [IdPretAide] = MAX ( Impaye[IdPretAide] ) ),
        [Nombre Impaye]
    )
    

    If it's a column, please try

    AAA =
    SUMX (
        FILTER ( ALL ( Impaye ), [IdPretAide] = MAX ( Impaye[IdPretAide] ) ),
        SUM ( Impaye[Nombre Impaye] )
    )
    

    If you still have doubts, provide some dummy sample data, along with the desired results. If [Nombre Impaye] is a measure, please provide a description of this formula. Remember to protect data privacy.

     

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.