Forum Discussion

LyonsBI_BRL's avatar
LyonsBI_BRL
Helper III
4 years ago
Solved

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! 

 

  • 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]

6 Replies

    • LyonsBI_BRL's avatar
      LyonsBI_BRL
      Helper III

      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

       

       

       

       

       

  • 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]
    • LyonsBI_BRL's avatar
      LyonsBI_BRL
      Helper III

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

      • AlexisOlson's avatar
        AlexisOlson
        Super User

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