Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Isnmxp4upiQjqrQvX6HCak
Power Automate - Building Flows
Answered

Simple Question: Filter Query Where Excel Column Name Has a Space

Like (0) ShareShare
ReportReport
Posted on 14 Oct 2019 18:42:22 by

I can get the following filter query to work (shown with space removed) UNLESS I have a space in the Excel column name (e.g., Remediation Responsibility). I have tried both single and double quotes and neither works. Adding "_x0020_" as the space also doesn't wk. Can't Flow accommodate a space in the Excel column name?

// Wks
RemediationResponsibility eq 'Customer'

// Doesn't Wk
'Remediation Responsibility' eq 'Customer'
// Doesn't Wk
"Remediation Responsibility" eq 'Customer'
// Doesn't Wk
Remediation_x0020_Responsibility eq 'Customer'


Flow Filter query with spaces.PNG

  • HimalayanKing Profile Picture
    2 on 14 Aug 2024 at 02:19:23
    Simple Question: Filter Query Where Excel Column Name Has a Space
    This is not working .it does not support if column has space . need to use filter array.
  • _Julian_ Profile Picture
    17 on 27 May 2024 at 07:00:58
    Re: Simple Question: Filter Query Where Excel Column Name Has a Space

    Yes it is not ideal but the way I see it, it is only going to get better once they add the feature for this connector. Until then you will have to do some work around or if possible rename your columns for better performance. 

    The solution I proposed earlier in this thread is also not going to work for 20 k rows as List rows present in a table returns max 5k rows without a filter. There are however severla workarounds for this issue.

  • ericwhitley Profile Picture
    137 on 25 May 2024 at 00:34:41
    Re: Simple Question: Filter Query Where Excel Column Name Has a Space

    This is a decent workaround but slow when dealing with 20 thousand rows.  I would prefer a solution to do the filtering in List Rows present in a table.

  • lauratn Profile Picture
    77 on 23 Jan 2024 at 21:03:18
    Re: Simple Question: Filter Query Where Excel Column Name Has a Space

    @_Julian_ Your workaround helped me a lot. Thanks!!

  • _Julian_ Profile Picture
    17 on 05 Dec 2022 at 08:02:28
    Re: Simple Question: Filter Query Where Excel Column Name Has a Space

    Hi,

    _Julian__0-1670226749141.png

    For this example I have an excel file with a column called "Column Name with Spaces". So I get the array of all entries in Table 1 of said Spreadsheet with the List rows present in a table action. Then I used the Filter array action to filter for the value 1 in the specified column. Note that you might have to edit in advanced mode as shown here, as the filter action is sensitive to the type of value you are filtering for (here: type string). The basic mode can sometimes be a little difficult for that.

    _Julian__1-1670227194270.png

    After the flow ran, the inputs of the filter array action should show you the whole array content, the output should only return the filtered array entries.

    Hope this helps 🙂

  • skerbel Profile Picture
    20 on 02 Dec 2022 at 17:48:05
    Re: Simple Question: Filter Query Where Excel Column Name Has a Space

    Hi there! Can you explain further how you filtered the data to correspond to your rows or columns with spaces in them? 

  • _Julian_ Profile Picture
    17 on 28 Nov 2022 at 14:03:50
    Re: Simple Question: Filter Query Where Excel Column Name Has a Space

    Hi, 
    I found a workaround of this issue by dividing the task into two actions:
    First you get the array with all rows from your excel file with the List rows present in a table action; second you filter it with the filter array action. You can edit it in advanced mode to even add multiple conditions with and or or logic.
    Let me know if this was helpful to you

  • yashm Profile Picture
    92 on 26 Apr 2021 at 19:24:51
    Re: Simple Question: Filter Query Where Excel Column Name Has a Space

    Hi, I am trying to do the same. Has this feature been added?

  • Verified answer
    v-bacao-msft Profile Picture
    on 15 Oct 2019 at 01:05:03
    Re: Simple Question: Filter Query Where Excel Column Name Has a Space

     

    Hi @Anonymous ,

     

    Unfortunately, the Filter Query in List rows present in a table action does not support the use of fields with spaces in the field name as filter parameters.

    This is a known limitation. If you want similar functionality to be supported by MS Flow, please consider voting for a similar idea:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Have-Consistency-in-on-Filter-Query-and-Order-By-on-Excel/idi-p/297122

     

     

    Best Regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard