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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

brackets in an OData URL

Hello,

 

I'm trying to get data from an oData URL.  There is a huge amount of data, so i want to filter on specific column in my request.

The problem is that my column name contain brackets "ShortcutDimCode[4]".

 

This is my url :

 

http://xxxxxxxxxx.com:7088/xxxxxxxxx/OData/DEVIS_ACHATSPurchLines?$filter= ShortcutDimCode[4] eq 'xxxx'

 

image of the error :

https://ibb.co/Q6njkYn 

 

Is it possible to filter with a column name that contain brackets ?

 

Thanks for your help

3 REPLIES 3
Anonymous
Not applicable

Up

dax
Community Support
Community Support

Hi @Anonymous , 

It seems that you have specific charater in column name, you could try to use x005B_Column_x005D to see wether it work or not. In addition, it seems that your value also have "[", "]", right? You could remove it or use above suggestions to see whether it work or not.

You could refer to Filter a report using query string parameters in the URL  for details.

Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

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. (Type 'NAV.DEVIS_ACHATSPurchLines' does not have a property 'ShortcutDimCode0x005B_4_0x005D'.)
OData Version: 4, Error: The remote server returned an error: (415) Unsupported Media Type. (Unsupported media type requested.)
OData Version: 3, Error: The remote server returned an error: (400) Bad Request. (Type 'NAV.DEVIS_ACHATSPurchLines' does not have a property 'ShortcutDimCode0x005B_4_0x005D'.)
Details:
    DataSourceKind=OData
    DataSourcePath=http://xxxxxxxxx.com:7088/xxxxxxx/OData/DEVIS_ACHATSPurchLines

 

column name : ShortcutDimCode[4]

value don't contain any special character

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors