Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Circular Dependency Workaround

I understand where my circular dependency is coming from, but I can't figure out a way to get the desired result without causing this error. And what makes it annoying is that I don't think it would ...
  • v-huizhn-msft's avatar
    9 years ago

    Hi Anonymous,

    I try to reproduce your scenario and create the following sample table. 



    1. Create calculated column using the same formula.

    DatesBetween = IF(ISBLANK(BILLING[Client Due Date]),BLANK(),(BILLING[Cash Deposit Date] - BILLING[Client Due Date])*1)


    2. Create a calculated column to get the average using the formula instead of measure. You'd better change it to int data type using INT function.

    Average Time to Pay = INT(AVERAGE(BILLING[DatesBetween]))


    3. Create a calculated column using the formula, and get expected result, please see the following screenshot.

    Column 2 = IF(ISBLANK(BILLING[Client Due Date]),BLANK(),BILLING[Client Due Date]+BILLING[Average Time to Pay])




    Please don't hesitate to ask if you have other issue.

    Thanks,
    Angelia