cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Excel Filter Query

Hi

Im wondering if someone can help me with the following flow. 

 

I have a table that i need to filer based on the month paid for example "Sep-19". 

 

The table looks like this and im trying to filter colum H:H.

 

Capture.JPG

 

My flow looks like this using expression

formatDateTime(body('Get_Last_Month_Date_Format_For_File_Creation'),'MMM-yy')

:-


Capture1.JPG

 

But i seem to be getting the following error. 

 

{
"status": 400,
"message": "Syntax error at position 2 in 'H:H eq 'Sep-19''.\r\n inner exception: Syntax error at position 2 in 'H:H eq 'Sep-19''.\r\nclientRequestId: 47a3dc3a-61e7-4136-bc16-e4e2f0754e97",
"source": "excelonline-uks.logic-ase-uksouth.p.azurewebsites.net"
}
 
Im wondering 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Excel Filter Query

Hi @Barber_Chris ,

 

Please take a try with "Filter array" action instead of using the "Filter Query" field in the action.

 

1.png

@equals(item()?['Paid Month'], '43727')

 

2.png

@equals(formatDateTime(addDays('1900-01-01T00:00:00Z', sub(int(item()?['Paid Month']), 2)), 'yyyy-MM'), '2019-09')

 

And the DateTime Sep-19 in flow would be string 43727, you could refer to link below for learning more details and solutions:

https://powerusers.microsoft.com/t5/Building-Flows/Excel-Online-Date/td-p/134200

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

Re: Excel Filter Query

Hi @Barber_Chris 

 

In the filter query, you can type

 

Paid_x0020_Month eq 'expression' and check if it works. if not, try: 

PaidMonth eq 'expression'. 

 

Following your other post: https://powerusers.microsoft.com/t5/Building-Flows/Filter-Query-with-Excel/m-p/370347#M41548

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Community Support
Community Support

Re: Excel Filter Query

Hi @Barber_Chris ,

 

Please take a try with "Filter array" action instead of using the "Filter Query" field in the action.

 

1.png

@equals(item()?['Paid Month'], '43727')

 

2.png

@equals(formatDateTime(addDays('1900-01-01T00:00:00Z', sub(int(item()?['Paid Month']), 2)), 'yyyy-MM'), '2019-09')

 

And the DateTime Sep-19 in flow would be string 43727, you could refer to link below for learning more details and solutions:

https://powerusers.microsoft.com/t5/Building-Flows/Excel-Online-Date/td-p/134200

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (4,430)