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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
danextian
Super User
Super User

The semantic models contain calcualted tables/column that refer to remote tables?

Hello,

I normally don't post as I am able to resolve most of my Power BI queries on my own but this one is a puzzle to me. The error in the screenshot is normally what I would get if I created a calculated table or column referencing a direct query table/column. My semantic model is composite but all the columns in the calculated table formula are from imported tables. Now, if I removed KEEPFILTERS the warning would go away. I can refresh just fine in the service in a Pro workspace but this is an extra step everytime i publish from Desktop. 

danextian_0-1728805647694.png

 










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
7 REPLIES 7
ThxAlot
Super User
Super User

Under DirectQuery mode, DAX measures are transformed by formula engine of VertiPaq into sqls to retrieve necessary data from remote models. There exist some limitations on certain DAX funtions; complex measures are advised to avoid as well.



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



tharunkumarRTK
Super User
Super User

@danextian 

I guess the column within the KEEPFILTERS() was taken from a remote table (pulled from an external semantic model). Is it? 

Even if that is the not the case, the dax query with this measure would need to observe the filters from remote tables as well. I believe that is reason for this warning message. 

 

I understand that you connected to an existing semantic model and imported other tables and converted live connectivity to direct query storage mode

Just FYI, Power BI has released a new update and now you can refresh your semantic model even though you have calcualted columns and tables referring to remote tables 

check out this link 

I raised a microsoft case for this feature, finally msft heard my voice
https://powerbi.microsoft.com/en-us/blog/power-bi-may-2024-feature-summary/#post-27048-_Toc167109016
just kidding

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

This is a composite semantic model but every column referenced in that calculated table are from imports. I do have direct query tables from an external semantic model but they are all fact and not dimension tables and certainly they aren't in the formula. The performance analyzer would have also  shown a row for direct query but there is none.

danextian_0-1728810657040.png

 










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Ok, can you share the pseudo code of your DAX query? you can copy it from the performance analyzer

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

This one is from the calculated table:

// DAX Query
DEFINE
	VAR __DS0Core = 
		SUMMARIZECOLUMNS(
			ROLLUPADDISSUBTOTAL('AverageByDayOfWeek2'[Name of Day], "IsGrandTotalRowTotal"),
			"SumAverage_Rev", CALCULATE(SUM('AverageByDayOfWeek2'[Average Rev]))
		)

	VAR __DS0PrimaryWindowed = 
		TOPN(502, __DS0Core, [IsGrandTotalRowTotal], 0, 'AverageByDayOfWeek2'[Name of Day], 1)

EVALUATE
	__DS0PrimaryWindowed

ORDER BY
	[IsGrandTotalRowTotal] DESC, 'AverageByDayOfWeek2'[Name of Day]

 

This one is from viewing the same measure without using a calculated table and yet averaged based on the name of day.

// DAX Query
DEFINE
	VAR __DS0Core = 
		SUMMARIZECOLUMNS(
			'Dates'[Date],
			'Dates'[Name of Day],
			'Dates'[Day Sort],
			"Legacy_Sites_Tracker_Revenue", '__MEASURES'[Revenue]
		)

	VAR __DS0PrimaryWindowed = 
		TOPN(501, __DS0Core, 'Dates'[Date], 1, 'Dates'[Day Sort], 1, 'Dates'[Name of Day], 1)

EVALUATE
	__DS0PrimaryWindowed

ORDER BY
	'Dates'[Date], 'Dates'[Day Sort], 'Dates'[Name of Day]

 

Performance analyzer does show a row for direct  query

danextian_0-1728817707363.png

danextian_1-1728817736945.png

 

 










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian 

I replicated your scenario but could not reproduce the warning message. I followed below steps:

 

1. Created a new PBIX file and connected to an existing semantic model hosted in power bi service 

2. Imported another table from excel after converting the storage mode from live to direct query. 

3. Created a calcualted table and refered the columns from import mode based table. 

4. Placed the columns from calculated table into a table visual and looked into performance analyzer, I did not see direct query portion. 

 

I was able to publish and did not get any warning message. Let me know if I missed any step. 

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

Did you use keepfilters from a dimension table?










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.