Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
This would be easy in Excel. And I have not been using PBI for the last year so a bit rusty, but had previously used it quite a bit.
I have a table of credit card transactions with dates
I have then got a single row table with a balance $#### on 04/05/2022
What is the best approach for making a new running total that takes the original balance and goes to the other table of transactions and adding/subtracting the transactions?
I do already have a sum[transactions] measure
and also a RT transactions measure
Solved! Go to Solution.
Hi,
See if my solution in the attached files help.
@Pmorg-73 , The table having original balance, you use it without joining to date table or use removefilters/all
= calculate(sum(Table1[Init Value]), all(Date) ) + calculate(sum(Table2[Value]), filter( all(Date) , date[Date] <= Max(Date[Date]) ) )
or something like
CALCULATE(firstnonblankvalue('Date'[Month],sum(Table[Intial Inventory])),all('Date')) + CALCULATE(SUM(Table[Ordered]),filter(all(date),date[date] <=maxx(date,date[date])))
You can also consider window function
Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f
Thanks fro helping
I am very confused by your code there. Can we write this to delineate between the credit card transaction "Date" and the overall calendar "date"
The first line of calculate gave me a syntax error also
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |