title: Cumulating values from all previous years but same month. (Powerpivot)
body: <p>I have measure &quot;A&quot;. Measure &quot;A&quot; already works as intended. What I want is a Measure &quot;B&quot; cumulating all values from Measure A for all previous years but only for the same month.
  Example: The value of measure B for January 2023 is the the value from January 20+21+22+23 from Measure A.</p>
  <p>Edit: Measure A is the result of various calculations including cumulations using filters.</p>
  <p>Here is a picture with a pivot showing Measure A and below how the results of measure B should look like:</p>
  <p><a href="https://i.stack.imgur.com/fBcZB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fBcZB.png" alt="Measure A and Target Measure B" /></a></p>