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
LyonsBI_BRL
Helper III
Helper III

Calculate Two Columns - Subtracting

Need a bit of help this morning on a calculated column I'm working on. I'm recieving the error message A Circular Dependency was detected

 

Column A first calculated revenue with the forumula below.

Computed Rev = ('Revenue'[clientBillRate]*'Revenue'[October Billable Hours])

Column B is then calculated for costs using the formula below

Computed Costs = CALCULATE(SUMX('Revenue', 'Revenue'[October Billable Hours]*' Revenue'[payRate]))*1+'Revenue'[Cost Burden]

 

Finally to find the Spread I attempt to use 

GM Spread = Computer Rev - Computed Costs

Where I then recieve the A Circular Dependency was detected error. What am I missing here. I know it's something simple I've overlooked for these calculations. 

 

Thanks! 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Your Computed Costs measure looks odd to me. Can you simplify it to this?

Computed Costs =
( 'Revenue'[October Billable Hours] * ' Revenue'[payRate] ) + 'Revenue'[Cost Burden]

View solution in original post

6 REPLIES 6
AlexisOlson
Super User
Super User

Your Computed Costs measure looks odd to me. Can you simplify it to this?

Computed Costs =
( 'Revenue'[October Billable Hours] * ' Revenue'[payRate] ) + 'Revenue'[Cost Burden]

Yep that worked, by simplifying it. that gives me the same output for the Computed Costs

Great. If you use that simplification instead, I don't think you'll get the circular reference error.

That did it thank you!

amitchandak
Super User
Super User

@LyonsBI_BRL ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey @amitchandak

 

Yes I can provide some sample data here

 

Cost Burden       IDclient    BillRate              payRate             Computed Rev          Computed Costs

0.38262972$59.00$30.00$9,912$5,040.38
0.02254433$100.00$50.00$16,800$8,400.02
0.21724534$95.00$60.00$15,960$10,080.22
0.32664774$85.00$50.00$14,280$8,400.33
0.19587281$85.00$50.00$14,280$8,400.20
0.38557340$62.00$34.00$10,416$5,712.39
0.251310006$120.00$68.00$20,160$11,424.25
0.256311005$113.00$68.00$18,984$11,424.26
0.293311297$125.00$77.00$21,000$12,936.29
0.269611802$90.00$53.01$15,120$8,905.95
0.371312687$83.00$45.00$13,944$7,560.37
0.242714270$90.00$55.00$15,120$9,240.24
0.258215679$175.00$115.38$29,400$19,384.10
0.262715853$95.00$60.13$15,960$10,102.10
0.301516776$76.98$46.00$12,932.64$7,728.30

 

 

 

 

 

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
Top Kudoed Authors