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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PshemekFLK
Helper IV
Helper IV

Composite Model and calculated column in DirectQuery tables

Hello,

 

I created my first composite model consisting of two sources - Excel sharepoint files and Azure Analysis Services database (DirectQuery). When I tried to publish the dashboard to service I got this warning:

 

PshemekFLK_0-1692969559177.png

I was surprised as I didn't have any calculated columns or tables refering to DirectQuery tables (I assume that's what remote tables are?). I just clicked yes and published and it worked perfectly. No refresh errors.

 

Now I want to start expanding my model and start building calculated columns on the DirectQuery tables. For now, as a test I built one calculated column and republished it. Still got the warning but still no refresh errors. This is great but I'm a bit worried that I don't understand the implications of what I'm doing and will invest a lot of time into expanding the model just to see the refresh failing suddenly.

 

Can someone clairfy what scenario in my case could cause refresh failures in the future? Can I keep adding calculated columns to the DirectQuery tables and build measures using those columns?

 

 

 

 

2 REPLIES 2
Covenant-bi
Helper I
Helper I

Yes, you can keep adding calculated columns to the DirectQuery tables and build measures using those columns. However, there are some scenarios that could cause refresh failures in the future:

  • If you make a change to the underlying data source that affects the calculated column, the calculated column will not be updated automatically. This could cause the refresh to fail if the calculated column is used in a measure or filter.
  • If you add a new column to the underlying data source, the calculated column will not be aware of the new column. This could cause the refresh to fail if the new column is used in a measure or filter.
  • If you remove a column from the underlying data source, the calculated column will still refer to the removed column. This could cause the refresh to fail.

To avoid refresh failures, you should make sure that you understand the implications of adding calculated columns to DirectQuery tables. You should also periodically test the refresh to make sure that it is working correctly.

Here are some additional things to keep in mind:

  • Calculated columns in DirectQuery mode are only calculated when the data is refreshed. This means that if you change the values in the underlying data source, the calculated columns will not be updated automatically.
  • Calculated columns in DirectQuery mode can be slow to calculate, especially if the underlying data set is large.
  • Calculated columns in DirectQuery mode can be difficult to troubleshoot if there are errors.

Many thanks for the detailed explanation! This is very helpful! Just to make sure I understood correctly:

 

1) If there is change in value in one of the columns of the underlying data source (let's call it "Net USD") and the calculated column (let's call it "Net USD Calculated") is referring to "Net USD," the "Net USD Calculated" will only get updated if I run the refresh of the report. This scenario will not cause refresh failures?

 

2) If someone would change the name of the "Net USD" column to "Net USD 2023" this would cause a refresh failure since calculated column "Net USD Calculated" is referring to the original name of the column which is "Net USD"?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors