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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
cashewNut
Frequent Visitor

Query references relationship between column and local date table which depends on invalid column

Hi, 

I've having trouble correcting an error which occurs when my dataset refreshes in online service. The error message is: "The query referenced a relationship between 'Study'[_75RTEActual] and 'LocalDateTable_87fbfb9c-96f2-4a84-a5b3-53db3f26f2bc'[Date], which depends on a column that is not in a valid state." 

What's strange is that the report behaves correctly in PBI desktop and in PBI service when it is initially published. However, as soon as onedrive refreshes, or scheduled refresh happens, the error occurs. 

The error seems to be similar to the one reported here, but for dates: https://community.powerbi.com/t5/Service/The-query-referenced-column-which-depends-on-another-column...

As suggested in that post, I have tried changing the datatypes of the relevant columns and format of the measure, but without success. It seems like it must have something to do with the date hierarchy not being handled correctly in the service, but I've tried converting to a text and back again to try and avoid the local date table problem, again without any success. 

The column in question depends on a measure - perhaps this is what is causing the issue? The measure returns the correct results in the desktop so I'm not how to troubleshoot it. 

Any help much appreciated!


 

1 ACCEPTED SOLUTION
cashewNut
Frequent Visitor

I solved this in the end - it had to do with using a mixed model and calling a direct query table in one of the column calculations on an imported table: works fine in the desktop, but not when refreshing in service.

View solution in original post

1 REPLY 1
cashewNut
Frequent Visitor

I solved this in the end - it had to do with using a mixed model and calling a direct query table in one of the column calculations on an imported table: works fine in the desktop, but not when refreshing in service.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.