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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ATREZISE
Helper I
Helper I

DataVerse Direct Query with field selector

Hi Everyone

 

I'm tring to connect to our dataverse environment using direct querty but only want to pull a limited number of fields in the hope that this will improve performance.

 

I've done this before using ODATA and the $select command

 

Is there a similar method using dataverse?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Hi, @ATREZISE 

According to my test, the SELECT query selected the columns from the same data source.

This is the original query:

v-robertq-msft_0-1617159419658.png

 

This is the query after “Remove column”:

v-robertq-msft_1-1617159419660.png

 

Although the query is a little bit different, but the table name after the “from” is the same.

Therefore, I think you can create a table with fewer columns to connect with Power BI and check if you can get the same result as mine.

Thank you very much!

More info about the “View native query”

 

Best Regards,

Community Support Team _Robert Qin

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

View solution in original post

5 REPLIES 5
ATREZISE
Helper I
Helper I

Thanks for your reply

 

Doesn't selecting columns after the data load mean that we have already fetched all the column data? i.e. it is to late by then...that's why I thought we could just select the fields we required as part of the query.

Hey @ATREZISE ,

 

depends on the query.

In general if you use a relational database as a source and you do a few easy steps, these are already transformed into a relational query.

This is called query folding in Power Query:

Query folding | Microsoft Docs

 

So if you need only 2 specific columns, Power Query doesn't load 10 columns and will then delete again 8 columns. Instead it will be translated into a SELECT  statement and only these 2 columns will be selected. 

 

You can always see the native query by clicking with the right mouse button on a step and chose "View native query":

query-folding-example[1].png

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

ah...so are you saying that only the final SELECT query is executed?

 

The Navigation step looks like this...

 

ATREZISE_0-1617112393938.png

However the next step (which removes the columns) only has the required columns...interesting though that it is selecting from a different source.

ATREZISE_1-1617112669130.png

 

 

Hi, @ATREZISE 

According to my test, the SELECT query selected the columns from the same data source.

This is the original query:

v-robertq-msft_0-1617159419658.png

 

This is the query after “Remove column”:

v-robertq-msft_1-1617159419660.png

 

Although the query is a little bit different, but the table name after the “from” is the same.

Therefore, I think you can create a table with fewer columns to connect with Power BI and check if you can get the same result as mine.

Thank you very much!

More info about the “View native query”

 

Best Regards,

Community Support Team _Robert Qin

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

v-robertq-msft
Community Support
Community Support

Hi, @ATREZISE 

According to your description, you want to pull a limited number of fields into the Power BI when using the direct query, I think you can use the Power Query editor to achieve this. You can click on the “Transform data” when you connect to the data source and select the tables you want:

v-robertq-msft_0-1616984430601.png

 

Then you can press on “Ctrl” to click the columns you want to remove, then select “Remove columns”:

v-robertq-msft_1-1616984430607.png

 

 

Best Regards,

Community Support Team _Robert Qin

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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