Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
laphroaig76
Helper I
Helper I

Account statement with running total

Hello community
I have connected our accounting system and now I want to map a bank statement in PowerBI.
I have the following columns: Date, posting text, amount, running total.
Now my current formula takes into account the posting text for the calculation of the running total. How can I filter this out so that it only creates the running total by date (date table) and amount?
The current formula is the following:
Amount YTD Test = CALCULATE (sum(buchung[betragbas]), DATESYTD ( 'Date'[Date] , "09/30"))

And this is the result:
Unbenannt.PNG

betragbas *-1 = Betrag CHF, posting text = Buchungstext.

The date is a dax table connected with the effective booking date in the system.

Thank you!

5 REPLIES 5
laphroaig76
Helper I
Helper I

There is a proper Date table with all features in Power BI. Its name is Date'[Date]

 

I tried it with another formula and it works:

Saldo CHF = CALCULATE ( [Amount], FILTER(ALLSELECTED(buchung), buchung[Index] <= MAX(buchung[Index])))
I entered an index row and ordered it according this. But this solution is very slow. Any ideas?
Unbenannt.PNG

Hi @laphroaig76 if you simply need running total (rt), and your solution is slow, one alternative is to calulate rt in power query. Check link. Hope this help

https://gorilla.bi/power-query/running-total/ 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






It does not help. I have not only shirts in my table. I have dozens of accounts and account transactions in this journal and for whatever reason, when I include the posting text, if the texts are the same, it adds this together and if there are new texts, it starts adding back at zero.

some_bih
Super User
Super User

Hi @laphroaig76 if you already have Date table (with features in Power BI marked as Date table) then in you view use date column from that Date table, together with you measure. I hope this help.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Without Text it works properly

ohne Text.PNG

But with Text not, why?

mit Text.PNG

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.