cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Barber_Chris
Level: Powered On

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 Team
Community Support Team

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

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!

Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,031)