Ytd Measure for trial balance

I would like to create a measure that shows Ytd values including periods that do not have any transactions. The measure should take the Period slicer into account

I have included screenshots of my current work book as well as shown the desired result below

The measure that I have created is:
PeriodBal = CALCULATE(SUM(AccountDetail[Amount]))

Desired Result
2021-01 2021-02 2021-03 2021-04 2021-05 2021-06 2021-07 2021-08
192.42 214.79 214.79 383.96 400.60 497.11 422.91 422.91

Hi @gfiedler, we aim to consistently improve the topics being posted on the forum to help you in getting a strong solution faster. While waiting for a response, here are some tips so you can get the most out of the forum and other Enterprise DNA resources.

  • Use the forum search to discover if your query has been asked before by another member.
  • When posting a topic with formula make sure that it is correctly formatted to preformatted text </>.

image

  • Use the proper category that best describes your topic
  • Provide as much context to a question as possible.
  • Include the masked demo pbix file, images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.

I also suggest that you check the forum guideline How To Use The Enterprise DNA Support Forum. Not adhering to it may sometimes cause delay in getting an answer.

Please also check the How To Mask Sensitive Data thread for some tips on how to mask your pbix file.