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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
DMB90
Helper II
Helper II

Combining Two Columns (Calculated) But Getting Circular Dependency Error

I have the existing formulas below in two separate columns that I want to combine into a new single column but I am getting a circular dependency error (picture attached) :

 

BI Screenshot.pngFirst:

3.Errors = if(and('Timesheet'[Activity Type]="Control",calculate(Sum('Timesheet'[2.Walkthrough])+sum('Timesheet'[2.Design])+SUM('Timesheet'[2.Interim])+SUM('Timesheet'[2.Rollforward])+SUM('Timesheet'[2.Annual])+SUM('Timesheet'[2.Remediation]))<>calculate(sum('Timesheet'[Hours]))),"Errors","")

 

Second:

0.BlankProcess = if(and('Timesheet'[Activity Type]="Control", 'Timesheet'[0.Adj Process]=BLANK()), "Errors", "0")

 

I want to combine the two columns, into a new column to basically say if the first column is equal to "Errors" and the second column is equal to "Errors", then "Errors" and if not then Blank.

1 ACCEPTED SOLUTION
FreemanZ
Community Champion
Community Champion

hi @DMB90 ,

 

try change it to:

3.Errors =
IF (
    AND (
        'Timesheet'[Activity Type] = "Control",
        ([2.Walkthrough] 
            + [2.Design] 
            + [2.Interim] 
            + [2.Rollforward] 
            + [2.Annual] 
            + [2.Remediation] )
            <> [Hours] 
        )
    "Errors", ""
)

 

p.s. try not to use CALCULATE in calcualted columns, context transition can spoil the calculation easily.

View solution in original post

2 REPLIES 2
FreemanZ
Community Champion
Community Champion

hi @DMB90 ,

 

try change it to:

3.Errors =
IF (
    AND (
        'Timesheet'[Activity Type] = "Control",
        ([2.Walkthrough] 
            + [2.Design] 
            + [2.Interim] 
            + [2.Rollforward] 
            + [2.Annual] 
            + [2.Remediation] )
            <> [Hours] 
        )
    "Errors", ""
)

 

p.s. try not to use CALCULATE in calcualted columns, context transition can spoil the calculation easily.

Thank you. This resolved my issue. Thanks for the tip to avoid using CALCULATE as well.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.