Forum Discussion
Mak_Leo
3 years agoNew Member
Running total missing values
Hi, I'm facing an unusual issue that I'm not able to solve. I've created a running total on a table that which increment every year. In the same project I've also a counter for every yea which ...
- 3 years ago
Hi,
This pattern should work
- Create a Calendar Table with a calculated column formula to extract the Year
- Create a relationship (Many to One and Single) from the Date column of the Data Table to the Date column of the Calendar Table
- To your visual, drag Year from the Calendar Table
- Write these measures
Count = CALCULATE(SUM(Table[Counter]),Table[Type]="TYPE1")
Running count = calculate([count],datesbetween(calendar[date],minx(all(calendar),calendar[date]),max(calendar[date])))
Hope this helps.
foodd
3 years agoCommunity Champion
Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.