I need to make an export of my data with a format like this: 
I want the output to be in seperate files (fanout) based on a single row value per group

I grouped the data by groups, so each group has unique attributes. How I can fanout and get the filename to be a single row attribute? ('bestandsnaam'), so in this case '504.pfrl'

This would be easy to fanout by 'bestandsnaam', but then I wouldn't knwo how to produce a layout like this:







