Cumul Sortie de stock

Home – Le CFO masqué Forums Power BI Cumul Sortie de stock

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by Xavier Allart.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #139572
    k-l-g
    Participant

    Bonjour,
    Après avoir suivis votre tutoriel, je n’arrive pas à calculer un cumul des entrée ou des sorties.
    Sur la vision annuelle mon stock final calculer est correct mais mes stocks de début de période et de fin de période à la maille mois ne le sont pas.
    J’ai essayé de décomposer la formule afin de trouver l’erreur, mais je ne comprend pas pourquoi mon cumul de sortie par mois correspond a mon cumul annuel.
    ” Cumul Sortie = CALCULATE(SUM(‘STK'[Quantité]),’STK'[Stock In/Out]=”Out”,FILTER(ALL(‘Date'[Date]),’Date'[Date]<=MAX(‘Date'[Date]))) ”
    A vous lire

    Attachments:
    You must be logged in to view attached files.
    #139660
    Xavier Allart
    Participant

    Bonjour

    Voici une piste
    =CALCULATE(
    SUM(‘STK'[Quantité]),
    ’STK'[Stock In/Out]=”Out”,
    FILTER(
    ALLSELECTED((‘Date'[Date])),
    ’Date'[Date]<=MAX(‘Date'[Date])
    )
    )

    ALLSELECTED((‘Date'[Date])) à la palce de ALL((‘Date'[Date]))

    Amicalement

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