I have a report that will have a dynamic list of security group names/numbers across the top (as headers for columns) then have a list of users who are in those groups. For the users, they will be in rows and if they are in the header group, then the group number will appear in the 'cell' below the group name. If they are not in the group, then an 'x' or blank will appear.
So, currently, I have a subreport pulling in the group headers:
GroupA – 11 GroupB – 15 GroupC – 28 GroupD – 44
And that works fine. The main report works, too, but I'm not able to get everything to display the way I'd like. I have three formulas (head, detail, footer) to create a comma delimited string with the groups the user is in and displays them. That is fine.
So, the main report looks like this:
User1 15,28,44
User2 11
User3 28,44
User4 11,44
I’d like the overall result to be this (and hopefully be able to export to XLSX, to boot):
GroupA – 11 GroupB – 15 GroupC – 28 GroupD – 44
User1 X 15 28 44
User2 11 X X X
User3 X X 28 44
User4 11 X X 44
The subreport (headers) is using one table with only the group name and the number. The main report is using tables including the group number and user names.
Can anyone tell me if this can even be done? Right now, I've got the headers hardcoded and under each heading, in the detail section, I have a formula that tests the comma delimited string. If 'group#' is instr, then 'group#' else 'x'. Seems simple enough, but there are over 100 groups - so over one hundred hardcoded headers and the same amount of formula fields. The group names will be changing soon, so I'd really love to have this all be dynamic and without the possibility of 'user error'.
Thank you, in advance!
~ lahddah
So, currently, I have a subreport pulling in the group headers:
GroupA – 11 GroupB – 15 GroupC – 28 GroupD – 44
And that works fine. The main report works, too, but I'm not able to get everything to display the way I'd like. I have three formulas (head, detail, footer) to create a comma delimited string with the groups the user is in and displays them. That is fine.
So, the main report looks like this:
User1 15,28,44
User2 11
User3 28,44
User4 11,44
I’d like the overall result to be this (and hopefully be able to export to XLSX, to boot):
GroupA – 11 GroupB – 15 GroupC – 28 GroupD – 44
User1 X 15 28 44
User2 11 X X X
User3 X X 28 44
User4 11 X X 44
The subreport (headers) is using one table with only the group name and the number. The main report is using tables including the group number and user names.
Can anyone tell me if this can even be done? Right now, I've got the headers hardcoded and under each heading, in the detail section, I have a formula that tests the comma delimited string. If 'group#' is instr, then 'group#' else 'x'. Seems simple enough, but there are over 100 groups - so over one hundred hardcoded headers and the same amount of formula fields. The group names will be changing soon, so I'd really love to have this all be dynamic and without the possibility of 'user error'.
Thank you, in advance!
~ lahddah