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
Tiddlerontheroo
Frequent Visitor

"Invalid Query Locator" error message when filtering certain values in a column in query editor

@moizsherwani I am trying to filter a column in powerquery to exclude certain SF opportunities. 

Tiddlerontheroo_0-1655267205327.png

When the step is applied in powerquery, I get this error message below. 

Tiddlerontheroo_1-1655267364231.png

Thanks Sir. 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Tiddlerontheroo,

AFAIK, Text.Contains function is used to compare two text strings.
The error message notifying you are trying to use the list in this function. Of the table fields stored the list of values. For this snceiaro, you can convert them to text strings before used in Contains function:

Table.SelectRows(#"Previous step",each Text.Contains(Text.Combine([FieldName], ","),"keyword"))

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @Tiddlerontheroo,

AFAIK, Text.Contains function is used to compare two text strings.
The error message notifying you are trying to use the list in this function. Of the table fields stored the list of values. For this snceiaro, you can convert them to text strings before used in Contains function:

Table.SelectRows(#"Previous step",each Text.Contains(Text.Combine([FieldName], ","),"keyword"))

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
FarhanAhmed
Community Champion
Community Champion

Is your Opp ID column a list ?







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Hi Farhan, not quite sure what the question means. Its the main column in that table, with all the other attributes being related to that column, and it is text too. 

sorry if I didn't expalined my question better.

 

I was asking if your column contains a List as Data  or simple text coming in column? 

Also it would be nice if you can share the Power Query code if it doesn't contains any sensitive info.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




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.