Forum Discussion
Circular Error Different Tables
I have two tables that I want to relate. A dimcalendar that is generated with Calendarauto(). And the other table contains two columns, one with dates and the other with sales values. There are no calculated columns or measurements. When making a relationship between dimcalendar[Date] and Table[date] I get a circular error. How can it be if the tables are unrelated to each other?
5 Replies
- az38Community Champion
it's because calendarauto() autogenerate calendar table based on the dates from model. it means in your case calendarauto() implicitly depends on Table[date]
https://learn.microsoft.com/en-us/dax/calendarauto-function-dax
you should define calendar table manually, for instance with CALENDAR() function
- Syndicate_AdminAdministrator
Hi, I understand what you mean but why does it work then with all the other tables? This is the only one that has given me problems. All the others have a [Date] column and there was no problem relating it to dimCalendar[Date].
Thanks a lot!
- IdrissshatilaSuper User
Hello Syndicate_Admin ,
can you provide a link of your pbix file so we could check what's happening.