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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Mila123
Frequent Visitor

Circular dependency in Service but no issue in Desktop

Hello,

 

I have two BI reports each having it's own dataset. Both were running for more then a year. Suddendly they stopped refreshing due to the same data source error: A circular dependency was detected: calendar[DATUM]...

When I refresh data in desktop and publish the report it works fine. I can even see published report. But when I want to refresh data in Service it fails. For test I've published a report dated in January 2024 and this one has the same refresh error. It looks like something has changed in Service. I'm so confused because of this discrepancy and don't know from where to start. I couldn't find anything similar in forums. My calendar is created with GENERATE( CALENDARAUTO()... Since there is no issue with calendar in Desktop I don't know why it fails in Service. Where or how should I dig to find the source of the error?

I would appreciate any hint or if someone had such issue what was the solution.

 

Regards, Mila

 

2 ACCEPTED SOLUTIONS
allyklee
Frequent Visitor

We had the same issue with calendarauto().  We replaced it with 

allyklee_0-1729021303261.png

 

If you have one fact table you can also just use min/max transaction date instead of a hard coded start/end date like above.  

 

View solution in original post

4 REPLIES 4
allyklee
Frequent Visitor

We had the same issue with calendarauto().  We replaced it with 

allyklee_0-1729021303261.png

 

If you have one fact table you can also just use min/max transaction date instead of a hard coded start/end date like above.  

 

@allyklee thank you. This is also a solution. Though it was not so easy to determine min date in our case where a lot of tables contain historical data.

Since the date field in our calendar table was renamed, the change AUTOCALENDAR to CALENDAR caused all relationships dissapeared. So in our case was better to change relationship 1:1 to 1:N.

@lbendlin , thank you very much. Yes, the solution is change all 1:1 relationships to 1:n with single direction. My calendar was connected with monthly plan and holidays, both 1:1.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.