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
lithiuman
New Member

Odata filters for AnyType fields

Hi, I am trying to filter data using Odata feed, all is fine unless I filter a field that is of AnyType.
For example, our ordernumber column is definitely text, using the filter and ordernumber eq 'abc' works perfectly well but when I try to filter on a column that is not explicitly typed such as ordercheck like: and ordercheck eq 'Yes', the whole query fails with:

 

image.png

 

Is there a way around this, or some way of explicitly specifying the column datatype within the select section of the query?

 

Thanks all

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @lithiuman 

 

When you load data from Odata data source, the table is in Import mode. You can connect to the data source without filtering in the first Source step. Add a step to change columns to appropriate types instead of Any type. Then filter columns per your need. This should work. Data will be loaded after you save and apply the changes. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

lbendlin
Super User
Super User

I don't see "AnyType"  mentioned in the ODATA documentation. Supporting OData Query Options in ASP.NET Web API 2 - ASP.NET 4.x | Microsoft Docs

 

Do you have a link maybe?

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