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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors