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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
purpletiger
Frequent Visitor

Date Table Circular Reference w Holiday Table

I am trying to add a holiday table to my Power BI model to calculate working days. Right now I only have two tables, the Date Table which I created using the  Function "DateTable = calendarauto()". The Holiday Table is simply hardcoded reference table. When I attemp to connect the two in an effort to calculate workdays, I get an error regarding Circular Reference. Can someone please help?

 

Thank you, this is really baffling me. 

 

image.png

2 REPLIES 2
MattAllington
Community Champion
Community Champion

What do you mean “hard coded ref table”?  Personally I never create date tables in Power Pivot. How about using power query as per my article here https://exceleratorbi.com.au/build-reusable-calendar-table-power-query/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

@MattAllington

 

I am also getting the same issue. In my case, the table is a transaction table with transaction dates and amount fields. The Dates table is created in Power BI desktop using the CALENDARAUTO function. This is also marked as a DateTable. But when I try to create a relationship between the [transaction date] field in the transaction table and the [date] field in the Date table, the circular reference error occurs.

 

The CALENDARAUTO fucntion is used / preferred to create the date table as this dynamically adjust the calendar table based on the minimum and maximum dates in the data model.

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.