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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
smalltownbear
Frequent Visitor

Calculated table refers to remote table via Direct Query

I recently created a new report based on a remote shared semantic model. The new report connects to the shared semantic model via Direct Query. In this report I created a calculated table that refers to one of the remote tables in the shared semantic model. When I went to publish the report to the PBI service, I got the following message:

 

smalltownbear_0-1729871166631.png

 

When I opened the report in PBI service I noticed that it threw an error and failed to load any of the data. After doing a little research it's still not entirely clear to me what I need to do to get this working, or whether it is even possible. Any tips or guidance would be much appreciated. Thanks!

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @smalltownbear - In Direct Query mode, calculated tables are not supported. This is because calculated tables are created in memory and require a full data model to work, which is not the case in Direct Query mode. Instead, Direct Query only sends queries to the underlying data source when visuals require data.

alternatively, you can use DAX Measures: If you're trying to perform calculations that result in new data, consider using measures instead of calculated tables. Measures calculate values dynamically based on the context of the report visuals without storing the data in a separate table or in Query Editor: If you need to filter or transform data from the remote table, consider doing this in the Query Editor before loading it into the report. This may involve creating a new table using Power Query rather than DAX.

If you require a specific transformation of the data, you might consider creating a view in the underlying data source that performs the necessary calculations or transformations. You can then reference this view in your Power BI report.

Make sure you have the necessary permissions to access the shared semantic model and any underlying data sources.

Check Data Source Settings: In the Power BI Service, ensure your data source settings and credentials are set up correctly for the shared semantic model.

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @smalltownbear - In Direct Query mode, calculated tables are not supported. This is because calculated tables are created in memory and require a full data model to work, which is not the case in Direct Query mode. Instead, Direct Query only sends queries to the underlying data source when visuals require data.

alternatively, you can use DAX Measures: If you're trying to perform calculations that result in new data, consider using measures instead of calculated tables. Measures calculate values dynamically based on the context of the report visuals without storing the data in a separate table or in Query Editor: If you need to filter or transform data from the remote table, consider doing this in the Query Editor before loading it into the report. This may involve creating a new table using Power Query rather than DAX.

If you require a specific transformation of the data, you might consider creating a view in the underlying data source that performs the necessary calculations or transformations. You can then reference this view in your Power BI report.

Make sure you have the necessary permissions to access the shared semantic model and any underlying data sources.

Check Data Source Settings: In the Power BI Service, ensure your data source settings and credentials are set up correctly for the shared semantic model.

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thanks for the reply @rajendraongole1. The explanation for why calculated tables are not supported makes sense, although it is a bit unfortunate from a user experience perspective that it works perfectly well in desktop and only stops working when you publish to the service. I will look into using one of the workarounds you suggest above. Thanks again.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.