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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Getting a Circular Dependency Error in relationship when using 2 concatenated Columns of 2 tables

Hello Everyone,

 

I have two tables and I am trying to create a relationship between these two tables with the best possible scenario.

 

Please refer to the tables below:

 

Table 1     Table 2    
Vendor NameYearMonthConc_AConc_B Vendor NameYearMonthConc_CConc_D
ABC2020JanABC2020JanABC2020Jan ABC2020JanABC2020JanABC2020Jan
CDE2020FebCDE2020FebCDE2020Feb CDE2020FebCDE2020FebCDE2020Feb
EDF2020MarchEDF2020MarchEDF2020March EDF2020MarchEDF2020MarchEDF2020March
HGH2021AprHGH2021AprHGH2021Apr HGH2021AprHGH2021AprHGH2021Apr
HGH2021AprilHGH2021AprilHGH2021April HGH2021AprilHGH2021AprilHGH2021April
HGH2021MayHGH2021MayHGH2021 HGH2021JanHGH2021JanHGH2021
HGH2021MayHGH2021MayHGH2021 HGH2021FebHGH2021FebHGH2021
HGH2021JunHGH2021JunHGH2021 HGH2021MarHGH2021MarHGH2021
HGH2021JuneHGH2021JuneHGH2021 HGH2021AprHGH2021AprHGH2021

 

a. First I created a Custom Column in each table concatenating Vendor Name, Year and Month. In table 1 its Conc_A, In Table 2 its Conc_C. However two rows wont get connected because in Table 2, Row 3 and Row 4 have a different Month.

 

b. So I created one more Custom Column in each table using Lookup Dax to use Vendor Name, Year and Month concatenation where ever this combination matches between two tables and where it doesnt match just concatenate Vendor Name and Year. So I created Conc_B and Conc_D with the best possible scenario where it matches all rows. Now when I want to create a relationship between these two table I am getting a Circular Dependency Error. 

 

Can someone please help in understanding this error and what is causing the Circualar Dependency error and how do we rectify it

 

The screenshots below are from the actual data I am working on

 

Vregalla_1-1628700748924.png

 

Vregalla_0-1628700640692.png

 

 

Regards,

Vamshi Regalla 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello All,

I Figured it out. The reason it was showing a Circular dependency is because the combination in Column Conc_D was repeating. 

 

Vregalla_1-1628878449767.png

To address this I created a Subset Table - Table 3 with Unique Values of Column Conc_D and then linked Table 1 with Table 3.  there were no circular Dependencies this time as Conc_D had unique values.

 

Regards,

Vamshi Regalla 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hello All,

I Figured it out. The reason it was showing a Circular dependency is because the combination in Column Conc_D was repeating. 

 

Vregalla_1-1628878449767.png

To address this I created a Subset Table - Table 3 with Unique Values of Column Conc_D and then linked Table 1 with Table 3.  there were no circular Dependencies this time as Conc_D had unique values.

 

Regards,

Vamshi Regalla 

 

v-easonf-msft
Community Support
Community Support

Hi,  @Anonymous 

If the calculated column B of Table1 and the calculated column C of Table2 are created based on the same column A1 in table1, it is not recommended to establish a relationship between column B and column C.

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Thank you. is there a workaround to establish relationship between these two tables considering 3 columns( vendor Name, Yeaar and Month) from each table 

Hi,  @Anonymous 

Take a try to  convert the calculated column B of Table1 into a actual column, for example, create a custom column B2 in 'Transform Data' to associate the corresponding fields. 

 

Best Regards,
Community Support Team _ Eason

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.