Try this:
```dataview
TABLE tags
FROM "test folder"
WHERE contains(file.name, "report")
SORT rating DESC
```
Note: attention to case sensitive. If you have “report” and “Report”, may you need to put this: WHERE contains(file.name, "report") OR contains(file.name, "Report") (or other more simple expression…)