![]() | ![]() | ![]() |
Visual totals are system-generated calculated members that use the AGGREGATE function. If a calculated measure in the cube uses an AGGREGATE function (like SUM, COUNT, MIN, MAX, or AVG), then the VisualTotals function works as designed. If a calculated measure does not use an AGGREGATE function, then you might see unexpected results. For these cases, you can use the VisualTotals_Behavior calculated member option in order to suppress the total and subtotal values returned by the VisualTotals function. When this option is used, the VisualTotals function returns missing values.
Here is the syntax for the VisualTotals_Behavior calculated member option:
VisualTotals_Behavior=(BLANK, {dimension_name | hierarchy_name} )
|
You can add this option to MDX calculated measure definitions in SAS® Information Map Studio, PROC OLAP, SAS® Enterprise Guide® OLAP Viewer, and SAS® OLAP Cube Studio. However, the most reliable place to add the option is in the Expression Editor in SAS Information Map Studio. If you add the option using the other products, the option is removed under certain circumstances. Specifically, the option is removed when SAS Information Map Studio creates a wrapper calculated member.
Wrapper calculated members are created in the following circumstances:
In the following table, the Prior Yr VTB calculated member (highlighted in yellow) uses the VisualTotals_Behavior option. The Prior Yr calculated member (highlighted in red) uses the same definition as Prior Yr VTB, but it does not include the VisualTotals_Behavior option.
Here is the definition of the Prior Year calculated member without using the VisualTotals_Behavior option:
DEFINE MEMBER "[Prdcube].[Measures].[Prior Yr]" AS 'iif([Time].[Time].CurrentMember.Level.Name="YEAR" ,
([Measures].[ActualSUM],ParallelPeriod([Time].[Time].[Year],1)) ,
iif([Time].[Time].CurrentMember.Level.Name="QUARTER",
([Measures].[ActualSUM],ParallelPeriod([Time].[Time].[Quarter],4)) ,
iif([Time].[Time].CurrentMember.Level.Name="MONTH",
([Measures].[ActualSUM],ParallelPeriod([Time].[Time].[Month],12)),
([Time].[Time].CurrentMember,[Measures].[ActualSUM])
))), SOLVEORDER = -5';
|
Here is the definition of the Prior Year calculated measure with VisualTotals_Behavior option:
DEFINE MEMBER "[Prdcube].[Measures].[Prior Yr VTB]" AS 'iif([Time].[Time].CurrentMember.Level.Name="YEAR" ,
([Measures].[ActualSUM],ParallelPeriod([Time].[Time].[Year],1)) ,
iif([Time].[Time].CurrentMember.Level.Name="QUARTER",
([Measures].[ActualSUM],ParallelPeriod([Time].[Time].[Quarter],4)) ,
iif([Time].[Time].CurrentMember.Level.Name="MONTH",
([Measures].[ActualSUM],ParallelPeriod([Time].[Time].[Month],12)),
([Time].[Time].CurrentMember,[Measures].[ActualSUM])
))), SOLVEORDER = -5, VISUALTOTALS_BEHAVIOR=(BLANK,{time})';
|
| Product Family | Product | System | Product Release | SAS Release | ||
| Reported | Fixed* | Reported | Fixed* | |||
| SAS System | SAS OLAP Server | z/OS | 9.21_M2 | 9.2 TS2M2 | ||
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows XP 64-bit Edition | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft® Windows® for x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows Server 2003 Datacenter Edition | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows Server 2003 Enterprise Edition | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows Server 2003 Standard Edition | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows Server 2003 for x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows Server 2008 | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows Server 2008 for x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| Microsoft Windows XP Professional | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows 7 Enterprise 32 bit | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows 7 Enterprise x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows 7 Home Premium 32 bit | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows 7 Home Premium x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows 7 Professional 32 bit | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows 7 Professional x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows 7 Ultimate 32 bit | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows 7 Ultimate x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows Vista | 9.21_M2 | 9.2 TS2M2 | ||||
| Windows Vista for x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| 64-bit Enabled AIX | 9.21_M2 | 9.2 TS2M2 | ||||
| 64-bit Enabled HP-UX | 9.21_M2 | 9.2 TS2M2 | ||||
| 64-bit Enabled Solaris | 9.21_M2 | 9.2 TS2M2 | ||||
| HP-UX IPF | 9.21_M2 | 9.2 TS2M2 | ||||
| Linux | 9.21_M2 | 9.2 TS2M2 | ||||
| Linux for x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| OpenVMS on HP Integrity | 9.21_M2 | 9.2 TS2M2 | ||||
| Solaris for x64 | 9.21_M2 | 9.2 TS2M2 | ||||
| Type: | Usage Note |
| Priority: |
| Date Modified: | 2013-06-10 11:23:16 |
| Date Created: | 2013-06-03 09:29:51 |


