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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Hasan_iba
Helper II
Helper II

Circular reference error

Hi power bi experts!! I am having a circular reference error while trying to calculare SPI and CPI coloumn. SPI =Cumulative BCWP/Cumulative BCWS. I have figured out that the cumulative BCWP is the source of the problem. I just can not fix the circular referecne error. It will be great if you can fix the issue. I have attached the file here:  https://drive.google.com/file/d/0B0XwYvmbIN12cktTaHZpTi1IZTQ/view?usp=sharing

A promp solution will be relaly helpful. Thank you. 

Regards

Hasan

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Hasan_iba,

 

Based on my research, there are normally two ways to solve the circular dependency issue:

  • Add the row identifier column to one of your fact tables, then create corresponding relationships with other fact tables.
  • Use ALLEXCEPT to remove the calculated columns from the set of columns that become part of the dependency list is a viable option.

For more details about the circular dependency issue, you can refer to this article.

 

In addition, after looking into your shared pbix file, I would suggest you try using Merge Queries options in Query Editor to merge your "TaskTimephasedDataSet" table and "TaskBaselineTimephasedDataSet" table into a single table, which should make your data mode clear and easier to handle. Here is an article about how to use Merge Queries option for your reference.Smiley Happy 

 

Regards

View solution in original post

3 REPLIES 3
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Hasan_iba,

 

Based on my research, there are normally two ways to solve the circular dependency issue:

  • Add the row identifier column to one of your fact tables, then create corresponding relationships with other fact tables.
  • Use ALLEXCEPT to remove the calculated columns from the set of columns that become part of the dependency list is a viable option.

For more details about the circular dependency issue, you can refer to this article.

 

In addition, after looking into your shared pbix file, I would suggest you try using Merge Queries options in Query Editor to merge your "TaskTimephasedDataSet" table and "TaskBaselineTimephasedDataSet" table into a single table, which should make your data mode clear and easier to handle. Here is an article about how to use Merge Queries option for your reference.Smiley Happy 

 

Regards

Hello! Thank you so much for the detailed explanation. I did bring one required column in the main table from other table and it worked. Much appreciated. Thanks
Hasan_iba
Helper II
Helper II

Hello Power BI community. I am getting circular reference error. I need to calculate SPI which is equal to cumulative BCWP/cumulative BCWS. I need to have SPI as a calculated column. I have figured out that the source of the circular reference is the cumulatiive BCWP column but cant figure out the problem of circular reference. The pbix file is in the link: https://drive.google.com/file/d/0B0XwYvmbIN12cktTaHZpTi1IZTQ/view?usp=sharing

A promp help will be much appreciated. 

Thank you

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors