Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, I have a list of payments in a table that I would like to cumulatively add up in a column based on the payment date. I am using the following query:
Running Total COLUMN =
CALCULATE (
SUM ( 'Application Payments'[AmountPaid] ),
ALL ( 'Application Payments' ),
'Application Payments'[PaymentDate].[Date] <= EARLIER ( 'Application Payments'[PaymentDate].[Date] )
)
You can see in the image below that when there are 2 records of data on the same date, then it doesn't work properly and it causes the value in the graph to jump up, and then again back down.
Please help 🙂
Solved! Go to Solution.
Hi, @gmaasz
try below code
just adjust table and column name
Measure = CALCULATE(
SUM('Table'[amount paid]),
'Table'[Column1]<MAX('Table'[Column1]),
REMOVEFILTERS('Table'[amount paid])
)+SUM('Table'[amount paid])
Hi, @gmaasz
try below code
just adjust table and column name
Measure = CALCULATE(
SUM('Table'[amount paid]),
'Table'[Column1]<MAX('Table'[Column1]),
REMOVEFILTERS('Table'[amount paid])
)+SUM('Table'[amount paid])
Worked like a bomb thanks
Hi @gmaasz put Date column from your Calendar / Date table (should be unique)
Proud to be a Super User!
I created a unique date column, and then updated my cumulative column formula as follows:
Running Total COLUMN =
CALCULATE (
SUM ( 'Application Payments'[AmountPaid] ),
ALL ( 'Application Payments' ),
'Date Table'[Date] <= EARLIER ('Application Payments'[PaymentDate] )
)
the table values still show the same issue.
or you plot a table visual with date[date] column and a measure like:
Running Total Measure=
SUMX(
FILTER(
'Application Payments',
'Application Payments'[PaymentDate]<=MAX('Date Table'[Date])
),
'Application Payments'[AmountPaid]
)
hi @gmaasz ,
My date table is not being picked up.
I created my date table separately with a formula giving me the following style output
hi @gmaasz ,
there was a typo. the column is supposed to add in your date table. It that so? You may also try the measure mentioned in another reply.
Thanks my result is still not correct when using the measure:
Not sure where the typo is you are referring to?
Maybe the issue is with my relationships? I have a 1 to many relationship with the date table and my application payments table.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |