POWER PIVOT CUMUL MOIS SELON DATE CHOISIE

Home Forums Power Pivot POWER PIVOT CUMUL MOIS SELON DATE CHOISIE

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59097
    pierro1234
    Participant

    Bonjour,
    Ci-joint un fichier R1 avec deux mesures explicites dans power pivot.
    Comment rajouter une autre mesure explicite pour calculer le cumul depuis le début du mois jusqu’à la fin du mois en fonction de la date choisie.
    Exemple si je choisis 12 mars, je souhaite le cumul du 1er mars au 31 mars et non du 1er mars au 12 mars.

    Merciiii

    #59124
    Sophie Marchand
    Participant

    Bonjour,

    Il vous faudrait une mesure du type:

    Mois complet = CALCULATE([VentesBrutes$],
    FILTER(
    ALL(DimDates),
    (DimDates[Date]>=DATE(MAX(DimDates[Année]),MAX(DimDates[Mois]),1) &&
    (DimDates[Date]<=DATE(MAX(DimDates[Année]),MAX(DimDates[Mois]),DAY(ENDOFMONTH(DimDates[Date]))))))) Au plaisir, Sophie

    #59125
    pierro1234
    Participant

    Merci Sophie,
    C’est promis je vais bientot faire la formation DAX en ligne,
    C’est indispensable et magique,
    Merci encoreeeeeeeeee

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