web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Excel filter query, co...
Power Automate
Unanswered

Excel filter query, column name has special character

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I want to list rows present in an excel file and apply a filter query to it. However, the column name in the filter has special characters. This I can't change.

 

Its currently Q1. Date:

 

and my filter query is Q1. Date: eq CourseDate (CourseDate being a user input)

 

I understand I need to replace these special characters with unicode to allow it to work as expected. Can someone help please?

 

Is it something like Q1_x002E__x0020_Date_x003A_ eq CourseDate

 

Thanks

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    Try:

    Q1_x002e_ Date_x003a_

  • Community Power Platform Member Profile Picture
    on at

    Thanks for the reply @Paulie78. No joy, I get the following error:

     

    Syntax error at position 21 in 'Q1_x002e_ Date_x003a_ eq '30/09/2020''.
    inner exception: Syntax error at position 21 in 'Q1_x002e_ Date_x003a_ eq '30/09/2020''.
    clientRequestId: c8a4b107-a8fb-444d-ae83-8e44ed502bc3.

     

    Does the space not also have to be replaced by unicode?

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    So I tried this out, with an Excel table with the same column name, I could not get the filter query to work. If you can figure out a way to get it to work I would be interested to know what it is. Instead I put the output from Excel into a select to make the column names easier to work with, then put that into a filter:

    oDataFilterExcel.PNG

     

    If you want the dynamic content back then you can add a parse JSON step. Just a warning, your query probably wouldn't have worked anyway (in the way you imagined). Because your excel dates are actually integers, not dates.

     

    Edit: The expression on the left side of the filter is:

    item()['Q1_Date']
  • IMAX99 Profile Picture
    55 on at

    I have the same issue 'special characters in column headers' but I have over 100 columns and the number varies. Any thoughts on how to handle this as using Filter array would require editing the workflow whenever new columns are added to my Excel table.

  • Community Power Platform Member Profile Picture
    on at

    The idea sound great, but how did you manage to add dynamic values (columns) to mapping? The only dynamic values I get are "body" and "value" : 

    DDusza_0-1648042251991.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard