cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Support
Community Support

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
Dual Super User II
Dual Super User II

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!

Community Support
Community Support

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (7,381)