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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.