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

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

Reply
DataNinja777
Super User
Super User

Circular dependency of dax tables

Hi,

 

I occasionary encounter circular dependency issues when trying to create relationships between tables created using dax table functions and the dimension tables (such as calendar table etc.,)  

 

Sakiko_1-1695044970819.png

 

I attach the link to the pbix file which is generating the error message above. 

Price index.pbix

I'd greatly appreciate it if anyone could let me know if there is a quick fix to this circular dependency issue.  

 

1 ACCEPTED SOLUTION
ERD
Community Champion
Community Champion

@DataNinja777 , you need to create your second table in a bit different way:

Summary = 
ADDCOLUMNS(
SUMMARIZE ( 'Table',
    'Table'[Item Code],
    'Calendar'[yyyy-mm]),
    "Price", CALCULATE(DIVIDE ( SUM ( 'Table'[Value] ), SUM ( 'Table'[Qty] ) ))
)

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

View solution in original post

4 REPLIES 4
ERD
Community Champion
Community Champion

@DataNinja777 , you need to create your second table in a bit different way:

Summary = 
ADDCOLUMNS(
SUMMARIZE ( 'Table',
    'Table'[Item Code],
    'Calendar'[yyyy-mm]),
    "Price", CALCULATE(DIVIDE ( SUM ( 'Table'[Value] ), SUM ( 'Table'[Qty] ) ))
)

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Thanks!  The circular dependency error message disappeared, although it transpired that there was another underlying issue of many-to-many relationship when trying to create a relationship with the calendar table.  

DataNinja777
Super User
Super User

Hi,

Regarding the circular dependency issue, sometimes removing the blanks in the calculated table helps, but this time, it didn't.  How do you fix this circular dependency issue of the calculated table?  

Price index.pbix

Sakiko_0-1695097400661.png

 

some_bih
Super User
Super User

Hi @DataNinja777 your Calendar table is not correctly created, ADDCOLUMNS part. check it





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.