How to add more filter fields based on condition like columns

is it possiable to add filters in report based on condition

like here click on [show variant attributes] lead to create filters for all attr no matter the numbers
image
in server side i found this

if self.filters.get("show_variant_attributes"):
	columns += [
		{"label": att_name, "fieldname": att_name, "width": 100}
		for att_name in get_variants_attributes()
	]
	print(columns)

return columns

def get_variants_attributes() -> list[str]:
	"""Return all item variant attributes."""
	return frappe.get_all("Item Attribute", pluck="name")

can i do the same for filters