Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I'm trying to create a simple running total column for the values in "Distance Travelled". My fomula in the column "RunningTotl" is as follows:
I'm having a separate date table "DateDim" with only dates, years and names of month.
But my formula is not working. It still gives the same values as the column "Distance Travelled".
I have tried the same with measure and using the measure to fill the column, still no use.
However, the formula seems to be working fine with a test table i created myself with some random data (see below):
Please help me in figuring this out.
Thanks in advance!
Solved! Go to Solution.
Ok. for the calculated column:
Running total by Year =
VAR _Year =
YEAR ( fTable[date] )
RETURN
CALCULATE (
SUM ( fTable[Value] ),
FILTER (
fTable,
fTable[date] <= EARLIER ( fTable[date] )
&& YEAR ( fTable[date] ) = _Year
)
)
As a measure
the model:
YTD measure =
TOTALYTD(SUM(fTable[Value]), 'Calendar Table'[CalDate])
Proud to be a Super User!
Paul on Linkedin.
Ok. for the calculated column:
Running total by Year =
VAR _Year =
YEAR ( fTable[date] )
RETURN
CALCULATE (
SUM ( fTable[Value] ),
FILTER (
fTable,
fTable[date] <= EARLIER ( fTable[date] )
&& YEAR ( fTable[date] ) = _Year
)
)
As a measure
the model:
YTD measure =
TOTALYTD(SUM(fTable[Value]), 'Calendar Table'[CalDate])
Proud to be a Super User!
Paul on Linkedin.
Hi, Thank you very much!!
Is the a reason you need these calculations as physical columns in a table? Normally these calculations are done using measures to be displayed in visuals in a report
Proud to be a Super User!
Paul on Linkedin.
Not necessarily. But since I'm trying to learn it would be nice if i could have these values in the table as well.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 50 | |
| 45 |