Report: how to group by a variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2017 06:03 AM
Hello! We have a report and have columns with service catalog variables. We have a need to group by variables and cannot find a way to do this (variables do not appear in the group by drop down list). Can anyone show me how to group by variables?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017 12:51 AM
Hi,
You can do a Reporting on the Variable Ownership table(sc_item_option_mtom) instead of Requested Item table and Group by "Parent item" with fields added to the Report to fetch the variable values as shown below:
In the screen shot above, Column "Question" refer to the Variable Name and the field "Value" refers to the the value contained in that variable for the item ordered.
Even you can group the Report based on Item also by dot walking in the Group column as "Parent Item-->Requested Item fields and then select Item and run your filter as shown below:
Hope this helps. Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017 01:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2017 07:22 AM
Catherine,
Did you ever figure out how to do this? I don't see a way to Group By a variable. I noticed if you sort the variable column in the report from A to Z or Z to A and then try and do a Bar Chart (which initially is greyed out)...it will error out saying you can't group by that field.
Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2019 05:12 PM
The above gentleman's information is correct.
The most important part is to search against the correct table.
In most cases the variables from your catalog item will be in the Request Item, this is why you can only see +Variable when viewing the Data of Table ( sc_req_item )
Thank you Schloke