When create a report string_value is only available as an "Additional group by" not in "Group by"

Tina24
Giga Guru

We have created a database view to joins table asmt_assessment_instance and asmt_metric_result.

So in database view , we set some different columns of "string_value".

When create a report for it, why "string_value" is only available as an "Additional group by" not in "Group by"?

Is it something we can correct/change?

We need set the "string_value" in "Group by" as default. Thanks!

 

Tina24_2-1713709604316.png

Tina24_3-1713709620898.png

 

 

Tina24_1-1713709596000.png

 

Tina24_0-1713709580001.png

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Tina24 ,

In ServiceNow reports, the availability of fields for grouping (Group By) and additional grouping (Additional Group By) depends on the data type and the way the tables are structured in the database view.

The "Group By" - is typically available for fields that are considered aggregate or numerical in nature, such as numbers, dates, and references to other tables.
The "Additional Group By" - is often provided for fields that are considered non-aggregate, such as strings or text fields.

If the "string_value" field in your database view is only available as an "Additional Group By", it suggests that ServiceNow recognizes this field as a non-aggregate field, possibly due to its data type or the way it's configured in the database view. To change this behaviour and make "string_value" available for regular grouping (Group By), you may need to adjust the configuration of the database view or the field itself. 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." 

View solution in original post

1 REPLY 1

Community Alums
Not applicable

Hi @Tina24 ,

In ServiceNow reports, the availability of fields for grouping (Group By) and additional grouping (Additional Group By) depends on the data type and the way the tables are structured in the database view.

The "Group By" - is typically available for fields that are considered aggregate or numerical in nature, such as numbers, dates, and references to other tables.
The "Additional Group By" - is often provided for fields that are considered non-aggregate, such as strings or text fields.

If the "string_value" field in your database view is only available as an "Additional Group By", it suggests that ServiceNow recognizes this field as a non-aggregate field, possibly due to its data type or the way it's configured in the database view. To change this behaviour and make "string_value" available for regular grouping (Group By), you may need to adjust the configuration of the database view or the field itself. 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful."