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
Anonymous
Not applicable

How can I limit the number of columns using $expand within $select?

Hi all,

 

I have a table with 997 columns, but cannot return all the data because of this message below, does anyone knows how can I use $expand to return just 800 columns?

 

DataSource.Error: Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Request failed:
OData Version: 3 and 4, Error: The remote server returned an error: (400) Bad Request. (VS403483: The query specified in the URI is not valid: VS403670: The specified query returns 997 columns which is higher than the allowed limit of 800 columns. Please, use explicit $select (including within the $expand) options to limit number of columns..)
OData Version: 4, Error: The remote server returned an error: (400) Bad Request. (VS403483: The query specified in the URI is not valid: VS403670: The specified query returns 997 columns which is higher than the allowed limit of 800 columns. Please, use explicit $select (including within the $expand) options to limit number of columns..)

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

What type of data source are you worked on? Can you please share more detailed information to help us clarify these?

How to Get Your Question Answered Quickly

If you are work with eh data sources that allow using advanced queries, you can add filters to limit the result query table fields. (e.g. SQL, OData)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
sayaliredij
Super User
Super User

When you click on to expand, power query gives you the option to select columns 

 

Eg. In following table

 

sayaliredij_0-1618294751218.png

 

Select the one you want 

 

Regards,

Sayali 

 

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





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

Proud to be a Super User!




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.