Forum Discussion

Sibrulotte's avatar
Sibrulotte
Icon for Helper IV rankHelper IV
1 year ago
Solved

Remove filter nor removing filters

Hi,  I've joing a basic model that ressembles something that work great for a topic we have.    I'd like to show the number of customers that were present on may 31st of the previous fiscal year o...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Sibrulotte ,

     

    I update the measure and you can try this.

    NB_epargnant_31_mai_comp =
    VAR vdern_date_31_mai_prec =
        DATE ( MAX ( Calendrier[Fiscal year] ), 05, 31 ) - 365
    VAR result =
        CALCULATE (
            DISTINCTCOUNT ( Soldes[Epargnant_ID] ),
            FILTER (
                ALLEXCEPT ( Soldes, Comptes_epargnants, 'Régimes' ),
                Soldes[Date_solde] = vdern_date_31_mai_prec
            )
        )
    RETURN
        result

    Result is as below.

     

    Best Regards,
    Rico Zhou

     

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