Forum Discussion
Filter does not work
- 10 years ago
This is tough without being able to see the query but my thoughts are ...
1) are there other steps in the query that could be hiding the row?
2) is the word "client" all in lowercase - PQ is case sensitive
3) how did your test row make it into the dataset? is it from the same data source as the other data?
4) finally, i've noticed that sometimes the query preview feature doesn't work exactly right - that could be what you're dealing with
- 10 years ago
Here the screenshots for easier understanding of how preview is ignoring case sensitive text filter and for those might having the same issue.
Filter by lower case "client reponse" will find the test data record with text "Client Reponse" in Query Editor preview...
...but not as a result:
Filtering by upper case "Client Reponse" will find the test data record in Query Editor preview.
...and also the data record, as the filter is case sensitive. But this is ignored by the preview...
Best regards
Patrick
Hi Austin
Thank you! Your 2nd point just guided me to the answer - which seems to be a bug in the preview. The filter in Query Editor is not case sensitive, but PQ is... I'll send a fraun to MS.
Btw: The data is loaded from our on-premise CRM Test system, the data source is the same for all records.
Willborn Can you elaborate a little bit on "Query Editor is not case sensitive"?
The queries editor *IS* the power query editor window, and it should reflect the true output from the underlying query engine. Can you share the full query?
- pqian10 years agoMicrosoft Employee
- Willborn10 years agoAdvocate III
Will do some further testing with other data sources - but most probably with the same result... keep you informed.
- pqian10 years agoMicrosoft Employee
Willborn I tested with a sample OData source:
let Source = OData.Feed("http://services.odata.org/northwind/northwind.svc/"), Customers_table = Source{[Name="Customers",Signature="table"]}[Data], #"Filtered Rows" = Table.SelectRows(Customers_table, each Text.Contains([ContactTitle], "owner")) in #"Filtered Rows"Here all "Owner" rows are returned in both the Preview and the final loaded data model, so OData text filtering is case insensitive (it's source dependent, since the substringof operator in OData is case insensitive.) FYI, the above query is executed directly on the service with the URL
I find that Preview and Data Model yielding different results extremely troublesome...I hope to get to the bottom of this, as I suspect it may not be the case sensitivity issue you mentioned.