Forum Discussion

KronaH's avatar
KronaH
Regular Visitor
2 years ago
Solved

Circular dependency - Odd table

Hello, quite new in Power BI so I am probably making some rookie mistakes... Would appreciate some help in understanding why this circular dependency appears. Or get an idea of how to achieve the r...
  • HotChilli's avatar
    2 years ago

    It's better to 'show' what you're doing rather than explain it in words (sometimes both are required). A small test data sample with the DAX for the calculated columns.

    --

    The error message says - CSV[Column] depends on CSV[Out] which depends on CSV[Column].  There might be no explicit connection between these two to the untrained eye but powerbi sees a connection.

     

    Let's look at the column code you have provided:

    Out = calculate(sum(CSV[A Out]) + sum(CSV[B Out]) + sum(CSV[C Out]) + sum(CSV[D Out]) + sum(CSV[E Out]) + sum(CSV[F Out]) + sum(CSV[G Out]) + sum(CSV[H Out]) + sum(CSV[I Out]))

     

    This looks like it could be done simpler.  Why is the calculate there? Is the SUM keyword required?  Can you show what you are trying to do here (with an example) please?