- 6 Minutes to read
- Print
- DarkLight
- PDF
How to Build Reports Using Rules
- 6 Minutes to read
- Print
- DarkLight
- PDF
The typical structure of a Dynamic Report consists of a report grid. For example, an income statement report might be shown on the column axis and income statement accounts along the rows axis. At the intersection of each member along each axis, a cell displays the measure data for the selection of company and department. In a report, both rows and column axis members may be a direct or pre-defined group of members called Report Sets. Report Sets are individually designed on a specific dimension. Once created they can be referenced in multiple reports. Typical examples of Report Sets are; Income Statement, Balance Sheet, and Cash Flow statements on an Account dimension or yearly, quarterly, and monthly on a Time dimension.
In Practice
Create a Variance Report with Currency Year Forecast and CurrentYear Actual to Report Operating Expenses for a Company, Scenario and Time
Report Structure:
Create a report set on an account dimension.
From the File Cabinet, click the Add list box and select Report Set.
Enter Operating Expenses for Code.
For the target report set Folder selection, select Report Sets.
Select the Financial Reporting Area.
Select Account for the Dimension.
Select a Static report set Type.
Click Save.
Selecting a reporting area determines the dimensionality for multidimensional reporting.
Build the report set.
Enter 7 and click the Add Rows button to insert 7 lines.
Add line descriptions.
Set each line Type to Reference Account.
Set the Variance for each line to -1.
The Variance property value is used in the calculation of a favorable budget variance. A favorable budget variance is a better actual result than the amount that was budgeted.
Set up rules for reference account lines.
Select a reference account line and click Add under the Rule column.
From the Rule tab, select the account dimension members from the account hierarchy for each line.
When a reference member definition directly corresponds to a member selection on the dimension used for building the report set, the member definitions are treated as dynamic members because they yield better performance over member references to multiple dimensions and advanced functions and formulas. During report set setup it is highly recommended that you evaluate the definitions to minimize the multiple dimension references or using the .CurrentMember functions in the MDX definition.
Save the report set.
Create a report set on a measures dimension.
From the File Cabinet, select the Add list box and click Report Set.
In the Code text box, enter Variance Reporting (Vs Fcst & PY).
For the target report set Folder selection, click on the magnifying glass and select Report Sets.
Select the Financial Reporting Area.
Select Measures for the Dimension.
Select a Static report set type.
Click Save.
Build the Report Set.
Insert 8 lines.
Add line descriptions.
Select line Types.
Set up formulas for Excel type lines.
1. For Var to Forecast, enter the following formula in the Frml (formula) field:
= (CY Actual - CY Forecast) * Variance
Note:To show a favorable budget variance, the variance property value for each line from the report set is placed on a row. To include this value, set up a line of type Variance (completed in step b) column set and use it for variance reporting. Favorable variance examples include: actual revenues are more than the budget or plan; actual expenses are less than the budget or plan; actual manufacturing costs are less than the budget for the period.2. For Var to PY enter the following in the Frml field:
= (CY Actual – PY Actual) * Variance
Set up line formats. Select the Percent(abs) format for Var% lines.
Select the number of decimal positions for the lines. Select 1 decimal position for Var% lines.
Hide the Variance type line by setting the Hidden property to Yes.
Click the background fill bucket and select White Smoke to set the background color for header lines.
Select Top and Bottom Border for each report set line.
For report column formatting, each report line is derived based on the formatting from report row lines. To override this default behavior for specific columns, use special type formatting for the report set lines. Special type formatting options applicable for report sets are: Number(abs), Percent(abs), Currency(abs).
To apply column borders (left and right) for reports, select the Top and Bottom Border option for report set lines used on the column axis of the report. The Top and Bottom Borders are transposed to left and right borders when used in the report set on the column axis of a financial report.
Set up Rule expressions for the line with a Reference Account type.
Select a Reference Account type line and click the Add under the Rule column.
Click the Advanced Rule tab.
Add the rules below for Reference Account lines.
Rule Line
Rule Formula
Desc./Notes
CY Actual
- Select the Actual member from the Scenario dimension.
- Drag and drop to Rule Builder.
- Insert a comma(,) after the Actual member in the formula editor.
- Select MTD from the measures dimension .
- Click on Add Member link.
- Enclose the members in the formula editor within a parenthesis ().
For this line to represent Current Year or Current Period actuals, refer to two dimensions such as the Scenario dimension to reference Actual data and the Measures dimension to represent the measure data such (MTD). When directly referencing members like this, add the references either from the Advanced Rule or Rule tab by selecting the Multiple Dimensions checkbox. Current Year or Current Period references is dynamically evaluated based on user selections at run time.
CY Forecast
Select MTD from the measures dimension.
Current reference is dynamically evaluated based on user selections at run time. Similarly, a Current Year or Current Period reference is based on user selections.
PY Actual
- Select the Actual scenario from the Scenario dimension.
- Drag and drop to Rule Builder.
- Insert a comma(,) after the actual member in the formula editor.
- Select MTD from the measures dimension.
- Click the Add Member link.
- Insert a comma after the measure member in the formula editor.
- Reference prior year of same period prior year using the parallelperiod MDX function (Parallelperiod(year,1,Time.CurrentMember)
- Enclose the members in the formula editor in parenthesis.
The ParallelPeriod function involves the following three parameters:
- Level expression - Specifies the level at which the returned member will lag from the specified member. If you omit this, it uses the level immediately above the assumed member, Time.CurrentMember.
- Lag- Specifies the number of positions that the returned member will lag from the specified member, at the specified level. For example, if you specify the Month level and a lag of 2, the returned member will be from two months before the specified member. You can lag to get a member that lies in front of the specified member in the hierarchy. If you specify zero lag, the function will return the specified member. If you omit this parameter, the function uses a lag of one by default.
- Member expression - Specifies the member at which the returned member shares its relative position. If you omit this parameter, the function uses Time.CurrentMember by default.
Rule definition syntax :
A report set line can have reference of members from one or more dimensions. It is essentially a multidimensional member.
When a line has a single member reference then it is a simple member reference on the dimension. For example: [Measures].[MTD]
When referencing more than one dimension, there is only one member from each dimension. To compose a member definition with more than one dimension, you must wrap the members in parentheses. For example: ([Scenario].&[1],[Measures].[MTD])
When a report is set built on a specific dimension, each report set line must have a reference to at least a single member of that dimension.
Create a financial report.
From the File Cabinet click the Add list box and select Dynamic Report.
Select the Financial Reporting Area and click OK.
Drag and drop the report set created for Account on the Row axis.
Drag and drop the report set created for Measures on the Column axis.
Drag and drop Company, Time, and Scenario dimensions on to the Page axis.
Setup header and footer details (not shown in this example).
Click the Header & Footer button.
Drag and drop Company, Scenario and Time into the header section.
Drag and drop Current Date on the left column under the report Footer section.
Click the Run button.