Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

circular dependency error

Hi,

 

I tried to create a New Column as shown in screenshot but got an error message as displayed ;

 

busdetails = table in which am trying to create new column

minfarekm = measure for calculating the minimum fare km by refering to a field in the table named Distance 

( MINFAREKM = CALCULATE(distance[TRIPDISTANCE]/2-2 ))

 

rateslababvminfare=field in busdetails table

 

request your help to solve the issue

  • Anonymous's avatar
    Anonymous
    4 years ago

    I recommend trying to create the same expression as a measure instead.

  • Anonymous's avatar
    Anonymous
    4 years ago

    You're welcome. Creating a measure in place of a calculated column has worked for me as a quick fix, but it might not always be the right solution. The SQLBI guys explain how to handle circular dependencies while maintaining a calculated columns, here

  • Anonymous's avatar
    Anonymous
    4 years ago

    Thank you once again, this one is more helpful 👍

8 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thank you once again, this one is more helpful 👍

  • Anonymous's avatar
    Anonymous
    Not applicable

    Does it need to be a column or can you use a measure?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Dear bchager,

       

      Column will be fine 

       

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        I recommend trying to create the same expression as a measure instead.