# Set the report name and filters
report_name = "Test Report"
filters = {
"warehouse": "Test Warehouse"
}
# Fetch the report data
report_data = frappe.get_all(report_name, filters=filters)
print(report_data)
Hi,
report_data= report.get_data() will return a tuple which consist of (columns, data)
so report_data[0] will contain fields definition and report_data[1] will contain the data.
maybe you can try to filter it manualy with:
result = filter( lambda data: data[‘department’]==“DEPARTMENT”, report_data[1])
tuple( result )
here department is my field name and its one of the result field
Just try it on my own report though… it might not work with yours cause ‘warehouse’ is not one of the result fields but i hope it will help somehow…