A circular dependency was detected:

msarfaraz

New Member
Joined
Oct 18, 2012
Messages
46
I have table Name "Table of all Data" with 6 column field
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date TY[/TD]
[TD]Date LY[/TD]
[TD]Total Available Unit This Year[/TD]
[TD][TABLE="width: 150"]
<tbody>[TR]
[TD="width: 150"]Total Sale Unit This Year[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 181"]
<tbody>[TR]
[TD="width: 181"]Total Available Unit Last Year[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Total Sale Unit This Year[/TD]
[/TR]
[TR]
[TD]01/01/2017[/TD]
[TD]01/01/2016[/TD]
[TD]500[/TD]
[TD]350[/TD]
[TD]600[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I creates New column This Year Sold Unit % by formula, LY occ % = calculate(Sum('Table of all data'[Total Sale Unit This Year]))/calculate(Sum('Table of all data'[Total available Unit This year]))
and its work fine but when I create another column by formula TY occ % = calculate(Sum('Table of all data'[Total Sale Unit Last Year]))/calculate(Sum('Table of all data'[Total available Unit Last year]))
I got error "A circular dependency was detected"

Any Help
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
on a normal sheet bottom left footer shows which cell has the circular reference, or at leaset the first one to rectify
 
Upvote 0
on a normal sheet bottom left footer shows which cell has the circular reference, or at leaset the first one to rectify

Please note this is the "Power BI" forum; not the Excel forum. The formulas supplied are DAX formulas.
 
Upvote 0
Hi
I am sorry, but I do not uderstand why you used calculate function in a calcualtion column? I think its result is equal simple formula
Instead
Code:
[COLOR=#333333]This Year Sold Unit % by formula, LY occ % = calculate(Sum('Table of all data'[Total Sale Unit This Year]))/calculate(Sum('Table of all data'[Total available Unit This year]))[/COLOR]
Use
Code:
=[COLOR=#333333]'Table of all data'[Total Sale Unit This Year] / [/COLOR][COLOR=#333333]'Table of all data'[Total available Unit This year][/COLOR]
In row calculation context of table they are equal.
Regards,
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top