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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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