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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors