Financials KPIs

Financials KPIs represent a sub set of the KPI Services functionality. The purpose with this functionality is to provide a way to define typical financial KPI definitions and then transform them to MDX (Multi Dimensions Expressions) before transfer them to a target OLAP cube, thus enabling the possibility to rather instantly start performing financial analyses using the General Ledger or the Group Consolidation OLAP Cube.

This section provides some more details relates to the KPI Services functionality.

Contents

 

General Functional Overview

The purpose with the Financial KPIs is to enable the possibility to within IFS EE define typical financials KPIs or measures based on accounting structures and then publish the KPIs in a target SSAS (SQL Server Analysis Services) OLAP cube. Publishing means adding new measures to the OLAP cube meaning that the OLAP cube can now directly be used in e.g. Excel (2013 or later) for further analysis.

Financials KPIs are based in accounting structures since most KPIs can be defined by using account based Income Statement or Balance Sheet accounting structures. This approach provides a big flexibility. The framework only supports accounting structures based on Account.

The IFS standard General Ledger cube supports Income Statement and Balance Sheet structures by providing special associated cube dimensions.

Analysis Models Installer

The Analysis Models installer supports Financial KPIs by installing a set of necessary SQL Server Agent Jobs if the technical component KPISMS is part of the build. These Agent Jobs are necessary to make the interaction between IFS Enterprise Explorer and SQL Server work properly.

For more details about the installer, please follow this link.

Installing Prerequisites

In order to fully be able to use the functionality related to Financial KPIs it is necessary to install some prerequisites, i.e. ADOMD and ADO providers for SQL Server.

To do this, locate the home page of the IFS instance and use the link Add-ons that opens a page that lists different additional software. ADOMD and ADO providers exists in 32 and 64 bit versions. Choose the version that corresponds to the current client operating system, i.e. for a 64 bit client OS choose for 64 bit OS providers.

Figure 1: Providers for SQL Server on IFS Home page

Connection Settings

Communicating from IEE with SQL Server requires some connection settings to be defined.

The configuration settings can only be defined through the IFS Installer. The configurations are done for KPI Services and Cube access via IFS Lobby via the same installation step. For KPI Services it is necessary to define:

  1. SSAS OLAP Cube Parameters
  2. SQL Server Data Warehouse Parameters

 

Note: There are different configuration requirements depending on if KPI Services is accessed from IEE client or from IFS Aurena. Still the configurations can only be made through IFS Installer, which is a change since the RTM release of IFS Applications.

The current setting can be viewed in the Connection Settings window.

Configuration Key Configuration Value Description
MS_SQL_SERVER_DB_SERVER_NAME SQLSRVDB This is the name of server where the MS SQL Server database installation has been made. This is thus the server chosen to host the Analysis Models related to the current IFS Applications instance.
MS_SQL_SERVER_DB_NAME Apps10_Prod The name of the database on the MS SQL Server db server that will contain the ETL data related to Analysis Models for the current IFS Applications instance
MS_SQL_SERVER_USERNAME bisqlssuser Microsoft SQL Server, (SQL Server Authenticated) Username
MS_SQL_SERVER_PASSWORD zVRVgdf5MVa5sk4l5YK75l98ln+mLswYekx6ANu Microsoft SQL Server, (SQL Server Authenticated) User Password
MS_SQL_SERVER_CON_MAX_EXE 60000 Microsoft SQL Server, Maximum Amount of Time (ms) a Connection should wait for Query Execution
MS_SQL_SERVER_CON_MAX_ACT 30 Microsoft SQL Server, JDBC Connection Pool No of Max Active Connections
MS_SQL_SERVER_CON_MAX_TOT 40 Microsoft SQL Server, JDBC Connection Pool No of Max Concurrent Connections
MS_SQL_SERVER_CON_MAX_WAIT 60000
Microsoft SQL Server, Maximum Amount of Time (ms) a Request should wait for a Connection from JDBC Connection Pool before throwing an Error.
MS_SQL_SERVER_JDBC_CON_STR_FMT jdbc:sqlserver://{SERVER_NAME};databaseName={DATABASE_NAME} Microsoft SQL Server, JDBC Connection String Format
SSAS_SERVER_NAME SQLSRVSSAS The name of the server where MS SQL Server Analysis Services (SSAS) has been installed. Many times the SSAS server name is the same as the db server name. The SSAS server will host the OLAP cubes deployed by the Analysis Models.
SSAS_SERVER_HTTP_URL http://SQLSRVSSAS/OLAP/msmdpump.dll SQL Server Analysis Services, HTTP endpoint
SSAS_USERNAME domain\bissasuser SQL Server Analysis Services, Domain Username of a SSAS Administrator
SSAS_PASSWORD vHUbcfhjtN9hYa7bKeNnWkWRfl3ksT65e45tQr4 SQL Server Analysis Services, Password of {SSAS_USERNAME} user
SSAS_CON_MAX_EXE 60000 SQL Server Analysis Services, JDBC Connection Pool Max Execution Time
SSAS_CON_MAX_ACT 30 SQL Server Analysis Services, JDBC Connection Pool No of Max Active Connections
SSAS_CON_MAX_TOT 40 SQL Server Analysis Services, JDBC Connection Pool No of Max Concurrent Connections
SSAS_CON_MAX_WAIT 60000 SQL Server Analysis Services, JDBC Connection Pool Max Wait Time

If KPI Services is only accessed via IEE client, then only the following configuration keys are used:

 

Note: The configuration values above are only examples

Note: Installation of Analysis Models on SQL Server means setting up an ETL process, SSRS reports etc. based on one single IFS Applications instance as source. The configuration settings for Financial KPIs should reflect this situation. The Analysis Models Installer will also set up necessary SQL Server Agent Jobs that can only relate to one IFS Applications instance.

Permissions

Interaction with SQL Server from IEE means accessing the SQL Server database as well as the SSAS server.

Only WIA, Windows Integrated Authentication, is supported. This means that the Windows account of the current user logged on to IEE must have been set up properly in SQL Server to enable the user to interact successfully with SQL Server.

The following must be set up on SQL Server for the Windows accounts that should access SQL Server via IEE:

KPI Company Groups

As part of the Financial KPI functionality a new basic data concept called KPI Company Group has been added. The purpose is to enable the possibility to group companies with the same follow-up structure. By doing this it will be possible to use the standard GL OLAP Cube for different analysis scenarios. KPI Company Groups can be used without having to define any Financial KPIs.

To use KPI Company Groups in the GL Cube, the following is required:

OLAP Cube Set-up

In the OLAP Cube Set-up form a cube identity is defined, supposed to represent a target OLAP Cube in the SSAS database. The target OLAP cube is defined by the following attributes:

A typical case when the cube database is not the same as the one created by the IFS Analysis Models Installer would be if it is required to test Financials KPI definitions in a separate cube, e.g. test, before the KPI definitions are published to the real target cube, e.g. production.

List of Values support is available for the attributes OLAP Database Name and OLAP Cube Name as well as for Measure Name in the Cube Measure tab and requires that SQL Server prerequisites have been installed on the client machine.

The OLAP Cube Set-up form also provides the following interaction options:

Financial KPI Elements

Financial KPI Elements represent the building blocks that are used when defining a Financial KPI. Refer to the IEE form Financial KPI Definition.

An element is defined in the scope of a cube and a company group and must be based on an accounting structure. In most cases this is either the Balance Sheet or Income Statement structure.

A cube source is defined for  the element, referring to a suitable OLAP cube measure in the context of a node in a structure hierarchy. A cube dimension is defined representing an accounting structure specific OLAP cube dimension, e.g. ACC STRUCT BS CG or ACC STRUCT IS CG, a hierarchy in that dimension (BSHy or ISHy) and a node in the referenced accounting structure.

List of Values against the target OLAP cube is possible and requires that SQL Server prerequisites have been installed on the client machine and the windows account must also have read rights on the OLAP cube.

Financial KPI Definitions

Financial KPI Definitions represent the measures to be created in the target OLAP cube.

Each KPI must have a unique name in the OLAP cube.

A KPI is defined by creating a set of calculation items, i.e. using the items KPI Element, KPI Operator, Factor, KPI ID to define the KPI. One example could be to create a KPI by using the element OPRES (operational result) and add it to the element FINRES (financial result).

When the definition is done it can be validated against the target OLAP cube via the RMB option Validate KPI. Validation requires that the Windows account has read rights on the OLAP cube.

Special Considerations

This part deals with some special issues that might have to be considered.

Problem Loading the MDX DLL

When performing RMB options that means interaction with SQL Server there might be some problems loading a DLL that handles necessary MDX operations. If a message box pops up saying that the DLL Ifs.Application.MdxCreator.dll cannot be loaded, one tested solution can be to clear the ClickOnce cache.

On Windows 7 this can be done in the following way:

  1. Close all IFS EE sessions
  2. Open a command window, e.g. Start (Windows button) then Run... and type cmd and press enter
  3. In the command prompt, type

    rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache

    and press enter

  4. Close cmd window, open IEE and try the KPI option again

 

Problem Connecting to SQL Server

If when performing RMB options that means interaction with SQL Server a message box pops up saying Access denied the most probable reasons are the following:

  1. The current Windows account (of the current user) does not have privileges to access the configured SQL Server.

    Make sure to check the privileges for the current user. Some information is found under OLAP Cube Set-up

  2. Remote connections to SQL Server are not enabled

    The following things must be handled.

    1. Enabling remote connections to the server
    2. Enable the TCP/IP protocol

    How to do this is described in different articles on the net. One example is provided via the following link.

 

Problems Encountered When Running ETL for GL or Group Consolidation Only

By default the BI Analysis Package installer will install four SQL Server Agent Jobs related to the Financials KPI functionality. The jobs are, assuming a given prefix as KPISRV_Bi_Prod:

  1. KPISRV_Bi_Prod_Process_Cube
  2. KPISRV_Bi_Prod_Run_ETL
  3. KPISRV_Bi_Prod_Run_Cube_GL_ETL
  4. KPISRV_Bi_Prod_Run_Cube_Cons_ETL
  5. KPISRV_Bi_Prod_Transfer_KPIs

Please also refer to general information about installing KPI Services.

By default only three of these agent jobs will be active and used by the Financial KPI functionality. When it comes to processing the ETL data, the job KPISRV_Bi_Prod_Run_Cube_GL_ETL or KPISRV_Bi_Prod_Run_Cube_Cons_ETL is used while the job KPISRV_Bi_Prod_Run_ETL is not used; it is only there as a backup job.

The job KPISRV_Bi_Prod_Run_GL_ETL only transfers General Ledger cube specific data and the job KPISRV_Bi_Prod_Run_Cube_Cons_ETL only transfers Group Consolidation cube specific data from IFS Applications to the data warehouse on SQL Server. This is relevant since the Financials KPI functionality only affects only the General Ledger and Group Consolidation cubes. The time to transfer the data is also reduced compared to transferring data for all available ETL sources.

If for some reason a cube specific job fails or if the data does not seem to be transferred correctly then there is a possibility to switch to the job KPISRV_Bi_Prod_Run_ETL, a job that transfers all data for all available ETL sources,  e.g. a full ETL job. This job can be more reliable but at the same time it takes much more time to execute.

Note: Before switching agent job, please check log files in the Log folder under the SSIS folder in the instance home. Also try running the agent job manually, as Administrator, a couple of times and investigate the log files to see if there are errors or if some ETL sources are not processed.

 To switch agent job for GL Cube do the following:

  1. Open up SQL Server Management Studio
  2. In the Databases folder, locate the database that is the target for the IFS Installation
  3. Select from the table SSIS_JOB_CONFIG_TAB

  4. Update the row with JOB_ID=<prefix>:Run_Cube_GL_ETL to <prefix>:Run_ETL

Note: Switching from the cube specific ETL to the full ETL transfer job means the ETL process might take a long time to execute and the job will transfer data for all ETL sources from IFS Applications to SQL Server