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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Marco_Iac
Frequent Visitor

Create a Function to Direct Query SQL Server Table

HI,

i create this function to import table by insering the table name from a SQL server with mor then 10k tab (Get data show only the first 10k table).

 

matto2727_0-1607092338232.png

 

Is it possible to create something similar that Direct query a table instead import?

This is the function code:

matto2727_1-1607092458050.png

i found some workaround like direct query a table and then change the name in advenced editor but  i need do this with a function,

Thanks

 

1 REPLY 1
v-alq-msft
Community Support
Community Support

Hi, @Marco_Iac 

 

It is unsupported to change connectivity mode in PowerQuery. The Storage mode property is a property that you can set on each table in your model and controls how Power BI caches the table data.

e1.png

 

There are some limitations for DirectQuery. In DirectQuery, there are very limited Power Query functionality and DAX functions are limited. For further information, please refer to the following document.

Manage storage mode in Power BI Desktop 

 

Best Regards

Allan

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors