To filter data in a query in Power Automate, you use the 'Filter Query' field in the relevant action (like 'Get items'). The filter query uses OData syntax and operators (like eq, ne, gt, ge, etc.) to specify the condition for filtering.