Equivalent MAX.SI en colonne calculée

Home – Le CFO masqué Forums Power Pivot Equivalent MAX.SI en colonne calculée

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #130208
    rigaud.novel
    Participant

    Bonjour,

    Je cherche à faire un somme.si en colonne calculé en DAX, cependant je ne trouve pas de solution.

    Je cherche des solution avec SUMX et Filter, mais je me retrouve avec des 3 ou des erreurs. Je pense que j’identifie mal les raison de ces échecs.

    Tableau voulu :

    ID | Valeur | Somme.si
    A | 1 | 2
    A | 1 | 2
    B | 1 | 1

    Merci pour vos réponses.

    #130360
    Stéphane Lorin
    Participant

    Bonjour
    Dans Power Pivot pour Excel :
    VAR _ID=[ID]
    RETURN SUMX(FILTER(Tableau1;[ID]=_ID);[Valeur])

    Stéphane

    #130361
    Stéphane Lorin
    Participant

    Autre possibilité avec CALCULATE

    VAR _ID = [ID]
    RETURN CALCULATE(SUM(Tableau1[Valeur]);Tableau1[ID]=_ID)

    Stéphane

    #130577
    rigaud.novel
    Participant

    Merci pour ce retour.

    J’ai aussi trouvé comme solution :

    SUMX(FILTER(Tableau1;[ID]=EARLIER([ID]));[Valeur])

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.