Forum Discussion
A circular dependency was detected
Hi all
I am building a new column on the table SKU by line - Official, which basically is a multiplication of:
A measure [BPM conversion]* a calculated column [Mix by product] * Max available time * Total hours to discount
The error I get is the following:
A circular dependency was detected:
I attach the pbix to better visibility. The syntax from my point of view is correct but don't know what could be wrong.
https://1drv.ms/u/s!ApgeWwGTKtFdh13Pj8JD18lE9HC8?e=XhCfRd
Regards.
11 Replies
- PaulDBrown
Community Champion
Check out this video by the gurus at sqlbi.com on circular dependencies:
- o59393
Post Prodigy
Hi PaulDBrown
I understood from the video that I need to reduce dependency list of the column, to consider only the needed column.
I am doing the all except in my 'Mix' calculated column and still not working.
So, on excel would be this:
And translated to dax I get:
The error on my 'Capacity' calculated column is directly related to my Mix calculated column above.
The capacity column is not a calculate function, just an IF. So I guess the root cause must be on the mix column.
Do you know what can I do based on my code?
Thanks.
- PaulDBrown
Community Champion
I would try wrapping the IF column in CALCULATE with ALLEXCEPT. Actually, you should do so with all calculated columns: the video states that all calculated columns need the ALLEXCEPT
- o59393
Post Prodigy
Hi PaulDBrown
If I try to wrap the if colum with calculate, this happens:
Columns are underlined with red.
Regards.