Forum Discussion
AndyS
10 years agoNew Member
Embedded report filter not working on integer fields?
I am working with embedded PBI reports. If I create the following filter on an nvarchar column it works as expected: ?reportId=<Report GUID>&$filter=Record/Title%20eq%20'My test title' Howeve...
akagiz
10 years agoFrequent Visitor
Hi there,
maybe you get that exception because of your commata -> ' <-
Because Int32 columns must not be quoted. Just try it without those: ?reportId=<Report GUID>&$filter=Record/ID%20eq%201234
As referred to this example:
http://services.odata.org/V4/OData/OData.svc/Products?$filter=ID%20eq%20%275%27 -> with quotes
http://services.odata.org/V4/OData/OData.svc/Products?$filter=ID%20eq%205 -> without quotes
Greetings
- AndyS10 years agoNew Member
Thanks for your suggestion akagiz. I thought I replied to your post the other day but apparently not.
I did try creating the filter without the single quotes around the value as you suggested before posting here but didn't have any success.