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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
fahadarshad
Helper I
Helper I

Using $Select to fetch only specific columns

I am trying to only fetch certain columns from my initial fetch of a table in Dynamics and even though it is not giving any error, but it is still bringing in all the columns.

 

let
// Construct OData URL with $select to fetch only required columns
URL = "https://xxxxxxx.crm4.dynamics.com/api/data/v8.0/quotes?$select=dwtc_totalamounthidden,createdon,quot...",
Source = OData.Feed(URL),

// Rename columns directly after fetching
#"Renamed Columns" = Table.RenameColumns(Source, {
{"_opportunityid_value", "Opportunity ID"},
{"dwtc_totalamounthidden", "Amount - Quote"},
{"dwtc_netareasqmtr", "Net sqm"},
{"statuscode", "Status Code"},
{"createdon", "Created On"},
{"quoteid", "Quote ID"},
{"statecode", "Quote State"},
{"dwtc_barterdiscount", "Barter"}
}),

// Reorder columns as needed
#"Reordered Columns" = Table.ReorderColumns(#"Renamed Columns", {
"Quote ID", "Opportunity ID", "Amount - Quote", "Net sqm", "Barter",
"Status Code", "Quote State", "Created On"
}),

// Apply any further transformations or filters
#"Filtered Rows" = Table.SelectRows(#"Reordered Columns", each ([Opportunity ID] <> null)),
#"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows", {{"Created On", type date}})
in
#"Changed Type"

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @fahadarshad  - $select parameter is passed correctly and formatted with valid column names from right entity.

https://xxxxxxx.crm4.dynamics.com/api/data/v8.0/quotes?$select=dwtc_totalamounthidden,createdon,quoteid

 

Hope the URL is correctly formatted and tested before using it in Power BI test your OData URL in a web browser or a tool like Postman API or others and clear Power BI’s cache to prevent it from using old data.try to remove unnecessary columns after fetching the data if needed.

 

Try the above points and let know

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 

 

 





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

Proud to be a Super User!





The url is correct and so are the column names but it isn't selecting those specific columns.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors