INFORMATIONAL ** THIS INFORMATION HAS NOT BEEN VERIFIED **

How to use In-Container Grouping in Sage MAS Intelligence

Entry Type: Informational

Product: SMI Report Designer

Application: Connector 

Version Reported: All 

Subject:

How to use In-Container Grouping in Sage MAS Intelligence.

Possible Resolution:

In-Container Grouping using the Connector Module can assist with the following types of Scenarios:

This method requires access to the Connector module. While it is a faster method of grouping information, it requires a level of SQL knowledge, and if you would like to change the groupings you will need to come back and modify the expression.

1. Open the Connector module. Double click on the relevant Sage MAS connector, then select the Financial Reports 2-0 (MAS) container.
 

2. Right click on the container and select 'Add Expressions'. From the next dialogue window, select 'SQL Expression'.

3. Select SQL Exception.

4. Give the expression the name 'Customized Group' and click 'OK'.

5. At the next prompt, simply select 'OK'.

6. The expression, 'Customized Grouping', will now be in the container. Select the expression, then type the following into the Expression Source field the click on 'Apply':

CASE WHEN SUBSTRING("GL_Account"."MainAccountCode",1,4)<200 THEN 'Group 1'

WHEN SUBSTRING("GL_Account"."MainAccountCode",1,4)<200 THEN 'Group 2' ELSE 'No GROUP' END

(This expression will look at each account number and if it is below 200, then return the value 'Group 1'; if it is above 200, then it will return the value 'Group 2'. This will happen on each line of raw data in the report. We will now add the field 'Customized Group' to our report.)

7. In the Report Manager module, select the Financial Reports Designer report.

8. The 'Choose Column Fields' window will appear. Scroll down until you find the 'Customized Group' field, place a tick in the box next to it and click 'Ok'.

**When the report runs, there will now be an additional column in the raw data sheet and will be available as a grouping field.