cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SHOOKANSON Frequent Visitor
Frequent Visitor

Circular Dependency - Simple Fix?

Hi all,

 

I am having an issue which I hope there is a simple fix for. I am trying to create two calculated columns (I cannot use measures because I need it to calculate row by row) - a sell column and a cost column.

 

When using these functions:

SELL = CALCULATE(SUM[SELL])*CALCULATE(SUM[QTY])

COST = CALCULATE(SUM[COST])*CALCULATE(SUM[QTY])

 

I keep getting a circular dependency error - I assume because I am trying to use the quantity in both columns. I tried adding an index column, but that did not solve my issue. I hope there is a simple fix to this that I just cannot find?

 

Thanks!!!

1 ACCEPTED SOLUTION

Accepted Solutions
Interkoubess Established Member
Established Member

Re: Circular Dependency - Simple Fix?

Hi @SHOOKANSON,

 

If you want to compute row by rows, then you can use SUMX.

 

SO for example in your case, you can have 

SELL = Sumx( Table, SELL*QTY)

COST=SUMX(Table, COST*QTY)

 

Please give a sample if you keep having trouble with the formulas,

 

Ninter

2 REPLIES 2
Interkoubess Established Member
Established Member

Re: Circular Dependency - Simple Fix?

Hi @SHOOKANSON,

 

If you want to compute row by rows, then you can use SUMX.

 

SO for example in your case, you can have 

SELL = Sumx( Table, SELL*QTY)

COST=SUMX(Table, COST*QTY)

 

Please give a sample if you keep having trouble with the formulas,

 

Ninter

Highlighted
SHOOKANSON Frequent Visitor
Frequent Visitor

Re: Circular Dependency - Simple Fix?

I knew I was missing something simple! Thanks! 

Helpful resources

Announcements
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 203 members 2,593 guests
Please welcome our newest community members: