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

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

Reply
Anonymous
Not applicable

ImpersonationError when creating Measures on Direct Query mode tables

I have a published dataset that contains both 'Direct Query' mode tables and 'Import' mode tables.  In desktop, I have created a thin report connecting to the published dataset.  The thin report, returns data from both types of table. 

 

When I create Measures that reference my Import mode tables, all is good.

When I create Measures that reference my 'Direct Query' mode tables I recieve the following error:

 

{"error":{"code":"DM_GWPipeline_Gateway_ImpersonationError","pbi.error":{"code":"DM_GWPipeline_Gateway_ImpersonationError","parameters":{},"details":[],"exceptionCulprit":1}}}

 

If I switch my 'Direct Query' table to an 'Import' table, the measures resolve as expected. Has anyone experienced this issue? Regards, Steven

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Is there any update?

 

Best Regards,

Dedmon Dai

v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

There are some dax functions don't support in Direct Query model. Would you please refer to https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2012/hh213006(v=sql.110)?redirectedfrom=MSDN#functions-not-supported-in-directquery-mode  for these function.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

Hi Dedmon Dai, 

 

Thanks for your reply and advice.  This is something that I should keep in mind for future reference as I'm certain that we currently use some of those listed functions; however, I do not believe this is the underlying issue.

 

I have further identified that the issue occurs on any Direct Query mode fields; it is not limited to DAX Measures as I thought previously.

 

I'm current working through the issue with Microsoft and we are focussing on the Gateway as the source of the problem. 

 

I'll keep you posted on our developments.

 

Regards, Steven

Helpful resources

Announcements
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.