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
summer18
Helper III
Helper III

Circular dependency error with Prior Month

I have a formula but getting "circular dependency error" that points to Prior Month budget but my formula is for Sales Actual.

 

Formula with error:

IF('Sales'[Department]="IT",0,'Sales'[YoY])

 

Here are the formulas related to my measure above:

YoY formula = (SUM(Actual)-[PY Actual]) / [PY Actual])

 

How can I fix the error?

 

1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

I'm assuming that the formula you state is for a calculated column?

 

If so have a read of Avoiding circular dependency errors in DAX - SQLBI.

In the expression for the calculated column you want to wrap your [YoY] measure inside a calculate with an ALLEXCEPT to prevent it from adding everthing into the filter context.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

1 REPLY 1
bcdobbs
Community Champion
Community Champion

I'm assuming that the formula you state is for a calculated column?

 

If so have a read of Avoiding circular dependency errors in DAX - SQLBI.

In the expression for the calculated column you want to wrap your [YoY] measure inside a calculate with an ALLEXCEPT to prevent it from adding everthing into the filter context.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

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.