Dataview table group by substring() shows the substring() and file.name as -

Perfect