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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
strider34
New Member

Running total of calculated column

Hello,

 

I'm trying to create a calculated column called OpenNCs in a table called NCDelta.  The OpenNCs column is intended to show a running total of another calculated column, NCDiff, in the same table.  It says a circular dependency was detected and I'm a noob so I haven't been able to figure this out.  The below picture shows my formula and the error.  In the "OpenNCs" column I would like to have it show 6, 7, 37...

strider34_0-1617386536960.png

Here is the formula in the other calculated column.

strider34_1-1617386933699.png

What the NCDiff formula does is look at two other tables and subtracts the number of records that were counted as opened and closed on a date, providing the difference.  I am trying to use this difference to show the total number of records that were open on a given day.  (Note that I changed the Table names for the screenshot, causing a lot of red underlines).

1 ACCEPTED SOLUTION
strider34
New Member

I was able to solve this by deleting the "OpenNCs" column and creating a running total using Quick Measure where I selected "NCDiff" for the Base Value and "Date" for the Field.  I guess I learned my lesson with going crazy with calculated columns.

View solution in original post

3 REPLIES 3
strider34
New Member

I was able to solve this by deleting the "OpenNCs" column and creating a running total using Quick Measure where I selected "NCDiff" for the Base Value and "Date" for the Field.  I guess I learned my lesson with going crazy with calculated columns.

CNENFRNL
Community Champion
Community Champion

@strider34 , as far as I'm concerned, I avoid, whenever possible, using CALCULATE/CALCULATETABLE in a calculated column; so that merely row context takes effect when authoring a DAX formula.

 

In your case, you might want to try,

OpenNCs =
SUMX (
    FILTER ( NCDelta, NCDelta[Date] <= EARLIER ( NCDelta[Date] ) ),
    NCDelta[NCDiff]
)

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

@CNENFRNL, thanks for the suggestion.  I tried using your formula and still got the error though:

 

strider34_0-1617394844091.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors