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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors