[Data Visualization] How to make reports based of Multi-row variable sets data? Please help..

John Clyde Ap_a
Giga Expert

Please help, I am confused as to how to implement this.

I have this table with records and each record find_real_file.png

contains a MRVS data (Red rectangle), and I wanted to get the values of each MRVS record in the green box as my requirement is to make a report that shows the popularity of each drink per month.

find_real_file.png

3 REPLIES 3

Community Alums
Not applicable

Hi @John Clyde Ap[as ,

Reporting is not available for MRVS OOTB, you will require to create a Database view.

Refer to this example:

You can actually report on MRVS by creating a database view, then use that view to report on

  1. Create a new Database view (System Definition -> Database Views)
    1. Give it a name like 'u_sc_req_item_multi_var'
    2. Label like "Multi Row Variable Set"
    3. Plural like "Multi Row Variable Sets"
    4. Description like "Joins the sc_req_item to the Multi Row variable set table to be able to report"
  2. Save
  3. Under View Tables click "New"
    1. Table: Requested Item [sc_req_item]
    2. Variable Prefix: sci
    3. order: 100
    4. Where clause: mrqa_parent_id = sci_sys_id
    5. Click "Submit"
  4. Under View Tables click "New"
    1. Table: Multi Row Question Answer [sc_multi_row_question_answer]
    2. Variable Prefix: mrqa
    3. order: 100
    4. Where clause: keep this field blank
    5. Click "Submit"

You should now have a DBV that looks something like this:

find_real_file.png

 

Create a new report

Select Table as source and select your new Database view (Multi Row Variable Set) as the table 

find_real_file.png

 

You should now be able to create a query and select the catalog item that you want to report on that has the MRVS, as well as adjust your columns to display the Question and Value as well as any other columns you want on your report.

find_real_file.png

Referred from this thread :https://community.servicenow.com/community?id=community_question&sys_id=252bce56dbd363809a64e15b8a96...

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Hello Sandeep,

I am having trouble setting it up. My requests are not in the requested items. These are different ones.

find_real_file.png

 

The requests/orders are in this table find_real_file.png

and its each record has its mrvs data with the name of the drinks but I do not know how to access the column(specifically the Name of the drinks) in the MRVS. The values for the name of the drinks cannot be seen in the table. I only added a formatter there so it will show how it looked like in the record producer. 

find_real_file.png

Community Alums
Not applicable