Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
eddEdwards
Frequent Visitor

Circular! Circular! Dependency! in measure

Hallo Community,My Brain is almost full trying to fugure out this dax puzzle...

BalEOQ = contribution+Interest Earned -FixedExp-Withdrawals -Variable Expenses
Interest Earned (EOQ)=((BalanceBOQ+contribution)-[FixedExpBOQ))*Rate

 

How posible way can I write this dax formular in order to avoid the circular dependencey?

 

circular.PNG

6 REPLIES 6
lbendlin
Super User
Super User

Show the code for all four measures that are used in the InterestEOQ measure.

Let me show you  in Excel the intire workfow so that you can understand where I am bumping to the circular Dependency

excd.PNG

yyyy.PNG

These are measures I have used

.........................

BalanceEOQ = [Contributions]+[Withdrawals]+[Interest]-[FixedExp]-[VariableExp]

Contributions = SUM('Project'[Contribution])

Withdrawals = SUM(Project[Withdrawal])

FixedExp = 10

VariableExp = MAX(0.02*[Contributions],0)

BalBOQ = MAX(
Var BalanceBOQ=PREVIOUSQUARTER
(Project[Date] )
RETURN
CALCULATE(
[BalanceEOQ],
FILTER(ALLSELECTED(Project), 'Project'[date]= BalanceBOQ)
),
0)

Rate = 4*((1+0.02)^(0.25)-1)

For me to get interest Earned..........
Balance BOQ= contribution+Interest Earned(EOQ)-[FixedExpBOQ-Withdrawals(EOQ)-Variable Expenses(EOQ)
Interest Earned(EOQ)=((BalanceBOQ+contribution)-[FixedExpBOQ))*Rate

.........

How do I Get the Interest earned to add to balance or How can I get the Excel Example to work in Power Bi?

 

you may want to reduce the problem to the minimum compound process to see if that works. Then you can add your complications back in one by one

 

this may be good for guidance: Compound Growth using DAX - Excelerator BI

Anonymous
Not applicable

Hi @eddEdwards ,

A circular dependency is detected whenever two objects reference each other, in such a way that Power BI cannot process the objects. 

Please check the two blogs below for the causes and solutions.

Understanding circular dependencies in DAX - SQLBI

Avoiding circular dependency errors in DAX - SQLBI

 

The other PREVIOUSQUARTER() returns a single column table, and generally we use IN to determine if a value is in the table, or something like this.

CALCULATE((<Expression>,ALLSELECTED('project'),PREVIOUSQUARTER('project'[Date]))

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.