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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.