Clausion Cloud export data
Description
Clausion data to Platform is provided by export schema tables and views.
Delivery method
All source data is transferred to Clausion Azure file storage automatically using Rest API or manually using Azure Storage Explorer. This will be done using the provided SAS-token.
Blob storage has IP restrictions option available.
RestApi example:
PUT https://xxxxstorageaacount.blob.core.windows.net/xxxxdataexport/ACT_2022.csv?
sp=racwdl&st=2020-12-01T11:25:16Z&se=2023-12-02T08:37:00Z&sv=2019-12-12&sr=c&sig=PN9OnfiM1McTLHfcebNjb%2FKl
HTTP/1.1
x-ms-date: {{\$datetime rfc1123}}
x-ms-blob-type: BlockBlob
x-ms-Content-Length: 20
Content-Type: text/text/csv
Red part includes the SAS-token (not a real token, only an example).
Azure storage explorer
Software can be downloaded from:
https://azure.microsoft.com/en-us/products/storage/storage-explorer/
After the software has been installed and opened. Create a connection by clicking the plug-symbol. After this, choose Blob Container.
Choose Connection method Shared access signature:
Add token url (provided separately). This URL is valid for x years. Token is highly confidential (includes both the address and password).
File can be found from Storage accounts -> Containers -> Blob containers -> xxxxdataexport:
File can be updated manually by delete, upload and download -functions.
DATASHARING-base-views
The OBDF export schema views provide a standardized data access layer for extracting Clausion data to external platforms and reporting systems. These views enable structured access to financial periods, accounts, dimensions, fact data, and voucher series, with optimized queries to support various use cases. They are intended for reporting, analytics, and data integration scenarios where Clausion data needs to be accessed outside the core application.
Time
View: export.FM_FINANCIAL_PERIODS
This view provides a structured representation of financial periods and their associated start and end times.
View Columns:
Column Name |
Source / Mapping |
Description |
|---|---|---|
PERIOD_CODE |
P.FINYRPER_FINPERUDID |
Unique identifier for the financial period. |
YEAR_CODE |
P.FINYRPER_FINYRUDID |
Financial year associated with the period. |
PERIOD_STARTTIME |
Derived from: FINYRPER_STARTTIME |
Start time of the financial period. |
PERIOD_ENDTIME |
Derived from: FINYRPER_ENDTIME |
End time of the financial period. |
PERIOD_TYPE |
FP.FINPER_PERIODTYPE |
1=Beg value. Period is not included in calculations (mm-1) 2=Normal period, Period is included to calculations 3=Extra period. Cumulative, conversion calculations are calculated, but period(s) are not included to period calculations (mm-1) period. |
QUARTERPERIOD_CODE |
FP.FINPER_QUARTERPERIODUDID |
Unique identifier for the quarter period. |
AccountData Views
View: export.FM_ACCOUNTS_DEFAULT_LAN
This view provides a list of base accounts with their default language text. It joins the FMACCKEY, FMACCKEYLAN, and FMLAN tables to provide a filtered result where the language is marked as default (LAN_DEFAULT = 1).
View Columns:
Column Name |
Description |
Valid Values |
|---|---|---|
ACCOUNT_CODE |
Unique identifier for the account. |
Alphanumeric string |
ACCOUNTGROUP_CODE |
Unique identifier for the account group. |
Alphanumeric string |
ACCOUNTCLASS_CODE |
Classification of the account. |
10=Income 20=Balance 30=Other 0=Not defined Default value is 0 |
ACCOUNTCLASS_NAME |
Classification Description |
see above values. |
ACCOUNT_INTERNAL |
Indicates if the account is internal (2) or external (1) |
2 or 1. |
ACCOUNT_DKCODE |
Indicates if the account is debit (1) or credit (-1). |
1 or -1 |
ACCOUNTDKCODE_NAME |
Human-readable name of the account type. |
Debet, Kredit |
ACCOUNT_NAME |
Text associated with the account in the default language. |
String (max 200 chars) |
ACCOUNTLANGUAGE_CODE |
Unique identifier for the language. |
ISO language code (e.g., EN, FI) |
Notes:
This view is designed to filter accounts that are active (ACCKEY_STATUS = 1) and have a default language set.
View: export.FM_ACCOUNTSHIERARCHY
This view retrieves account hierarchy and related metadata for export purposes. It includes account details, language-specific names, data type information, and hierarchy structure. This is the preferred view to use!
View Columns:
Column Name |
Description |
Valid Values |
|---|---|---|
PARENTACCOUNT_CODE |
The unique identifier of the parent account in the hierarchy. |
Alphanumeric string or NULL |
ACCOUNT_CODE |
The unique identifier of the account. |
Alphanumeric string |
ACCOUNT_NAME |
The name of the account, truncated to 200 characters. |
String (max 200 chars) |
ACCOUNT_DATATYPE_USAGE |
The usage type of the account's data type. |
Integer: 0=Input account 1=Sum account |
ACCOUNT_DATATYPE_USAGENAME |
The language-specific name for the account's data type usage. |
String (Input, Sum) |
LEVEL |
The level of the account in the hierarchy. |
Integer (e.g., 1, 2, 3, ...) |
LEVEL_POSITION |
The position of the account within its level. |
Integer |
LANGUAGE_CODE |
The language identifier for the account name. |
ISO language code (e.g., EN, FI) |
ACCOUNT_DATA_TYPE_CODE |
The unique identifier of the data type associated with the account. |
Alphanumeric string(ACT,BUD,FCT...) |
DATA_TYPE_NAME |
The language-specific description of the data type. |
String (e.g., "Actual", "Budget") |
MATERIALIZED_PATH |
The materialized path representing the account's position in the hierarchy. |
String ("10000/100030/100036") |
HIERARCHY_CODE |
The unique identifier of the account hierarchy. |
Alphanumeric string |
ACCOUNT_GROUP_CODE |
The unique identifier of the account group. |
Alphanumeric string (e.g. OTHERWC, DERIVATIVES,RECONCILIATION, Null) |
Accounthierarchy lookup from export.accdepend
This select statement provides list of valid accounthierarcies.
select ACCHIERUDID from export.ACCDEPEND where LEVEL=0
DimensionsData
View: export.FM_DimNNHierDataType
Purpose:
Recommended view to extract DimensionData!
View represents the hierarchical structure of FPM units with attributes like hierarchy level, node number, (LBower, RBower) low/high boundary values, language specific attributes, with DataType(Actual,Budget,Forecast etc) connection filtering.
Note: Not all units are in use in all datatypes!
View Columns:
Column Name |
Description |
Valid Values |
|---|---|---|
DIMENSION_CODE |
Identifier of the dimension. |
Alphanumeric code |
DIMENSION_NAME |
Name of the dimension. |
String name |
DATATYPE_CODE |
Identifier of the data type. |
Code (e.g., ACT, BUD, FCT) |
DATATYPE_NAME |
Name of the data type. |
String name |
HIERARCHY_CODE |
Identifier of the hierarchy. |
Alphanumeric code |
HIERARCHY_NAME |
Name of the hierarchy. |
String name |
YEAR_CODE |
Financial year identifier. |
Integer (e.g., 2024) |
PARENTUNIT_CODE |
Identifier of the parent unit. |
Alphanumeric code or NULL |
UNIT_CODE |
Identifier of the unit. |
Alphanumeric code |
UNIT_NAME |
Name of the unit. |
String name |
UNIT_CURRENCY_CODE |
Currency identifier for the unit. |
ISO currency code (e.g., EUR, USD) |
UNIT_CONSOLIDATION_TYPE |
Type of consolidation for the unit. |
Integer or string (e.g., 0=No, 1=Yes) |
UNIT_LEVEL |
Hierarchical level of the unit. |
Integer, Root level is 1. |
NODENO |
Node number in the hierarchy. |
Integer, Nested sets data model. See wikipedia. |
DOWNLINEUNITCOUNT |
Number of downline units. |
|
LBOWER |
Low boundary value. |
Integer, Nested sets data model. |
RBOWER |
High boundary value. |
Integer, Nested sets data model. |
UNIT_DATATYPE_USAGECODE |
Usage ID for the unit's data type. |
Integer (0=Input, 1=Sum) |
UNIT_DATATYPE_USAGENAME |
Usage name for the unit's data type. |
String (Input, Sum) |
MATERIALIZED_PATH |
Path used for sorting. |
String (e.g., "100/200/300") |
FactData
View: export.FM_FactDataExtra
View Columns:
Column Name |
Description |
Valid Values |
|---|---|---|
YEAR_CODE |
Represents the financial year identifier. |
Alphanumeric (e.g., '2024') |
VOUCHER_CODE |
Represents the voucher identifier. |
Alphanumeric (e.g. '10000','20000') |
DATADIM_CODE |
Represents the data dimension identifier. |
Generated automatically by using sql server Identity (1,1) |
VOUCHER_POSITION |
Represents the position of the voucher. |
Increasing numeric value 1..n, where n>0 |
ACCOUNT_CODE |
Represents the account identifier. |
Alphanumeric string |
INPUT_TYPE |
Represents the type of input data. |
Integer: 0=Manual Entry / CopySumToVoucherSerie 1=ACE (Automatic Counter entry) /ARD (RateDifference) / Mutual Shareholdings 2=ACA (Calculated: Moved from one account to another) 3=NCI (Non Controlling Interest = Minority Share) 4=ARE (Automatic Reconciliation Entry) No default value |
DATATYPE_CODE |
Represents the data type identifier. |
Alphanumeric string (e.g., ACT, BUD, FCT) |
DATADEF_CODE |
Represents the data definition identifier. |
Alphanumeric string (e.g. E01,E02,E03...) |
NUMERICDATA |
Contains numeric data values from extrafield |
Decimal/Float |
TEXTDATA |
Contains textual data values from extrafield |
String |
DATEDATA |
Contains date/time data values. |
Date/Datetime |
PATTERN |
Represents a pattern associated with the data. |
String |
UPDATENAME |
Name of the user or process that last updated the data. |
String |
UPDATEDATE |
Date and time when the data was last updated. |
Date/Datetime |
UPDATEMETHOD |
Method used to update the data. |
String or integer (e.g., "Manual", 1) |
DIM00UNIT_CODE - DIM09UNIT_CODE |
Represents unit identifiers for various dimensions. |
Alphanumeric string or NULL |
View: export.FM_FactDataMain
Base Fact data. Use when You need to compare different datatypes ACT,EST or ACT,BUD… Single datatypes use VW_DATAMAIN_xxx views.
View Columns:
Column Name |
Description |
Valid Values |
|---|---|---|
YEAR_CODE |
Financial year identifier. |
Alpanumeric (e.g., '2024') |
VOUCHER_CODE |
Voucher identifier. |
Alphanumeric (e.g., '10000', '20000') |
VOUCHER_POSITION |
Position of the voucher. |
Integer (1..n, where n > 0) |
DATADIM_CODE |
Data dimension identifier. |
Integer (auto-generated, e.g., 1, 2, 3, ...) |
ACCOUNT_CODE |
Account identifier. |
Alphanumeric string |
INPUT_TYPE |
Type of input. |
Integer: 0=Manual Entry/CopySumToVoucherSerie 1=ACE/ARD/Mutual Shareholdings 2=ACA 3=NCI 4=ARE |
DATATYPE_CODE |
Data type identifier. |
Alphanumeric string (e.g., ACT, BUD, FCT) |
PERIOD_CODE |
Financial period identifier. |
Integer (e.g., 1-12 for months, 0 Opening Balance, 13- extra periods) |
AMOUNTUNITCUMULATIVE |
Cumulative amount in unit currency. |
Decimal/Float |
AMOUNTGROUPCUMULATIVE |
Cumulative amount in group currency. |
Decimal/Float |
AMOUNTUNITPERIOD |
Period amount in unit currency. |
Decimal/Float |
AMOUNTGROUPPERIOD |
Period amount in group currency. |
Decimal/Float |
COMMENT |
Comments associated with the data. |
String |
UPDATEDDATE |
Last update date. |
Date/Datetime |
UPDATEMETHOD |
Method of update. |
String or integer (e.g., "Manual", 1) |
DIM00UNIT_CODE - DIM09UNIT_CODE |
Unit identifiers for dimensions 00 to 09. |
Alphanumeric string or NULL |
CODIM00UNIT_CODE |
Co-dimension unit identifier. |
Alphanumeric string or NULL |
PERIOD_UDID |
Financial period unique identifier. |
Alphanumeric string |
PERIOD_STARTTIME |
Start time of the financial period. |
Date/Datetime |
PERIOD_ENDTIME |
End time of the financial period. |
Date/Datetime |
PERIOD_TYPE |
Type of financial period. |
Integer: 1=Beg value 2=Normal period 3=Extra period |
QUARTERPERIOD_CODE |
Quarter period identifier. |
Alphanumeric string or integer |
View: export.FM_FACTLEAFDATA
Overview
Consolidated, leaf‑level fact data across multiple datatypes (e.g. ACT, EST, ESV, TGT, …) with period metadata. This view UNION ALLs the per‑datatype VW_DATAMAIN_<DT> views (each already normalized) and enriches rows with start / end timestamps and quarter period code from FM_FINANCIAL_PERIODS.
When to Use
- Need a single dataset spanning several datatypes.
- Reporting / analytics that pivot or aggregate across ACT vs BUD/EST without separate joins
- If you only require one datatype for high‑volume queries, prefer the underlying VW_DATAMAIN_<DT> view.
Output Columns (superset inherited from VW_DATAMAIN_<DT> + period timing)
Column |
Description |
|---|---|
YEAR_CODE |
Financial year identifier. |
VOUCHER_CODE |
Voucher reference code. |
DATADIM_CODE |
Data dimension identifier. |
VOUCHER_POSITION |
Position inside voucher (line order). |
ACCOUNT_CODE |
Account identifier. |
INPUT_TYPE |
Input classification (0 Manual, 1 Auto, 2 Calc, 3 NCI, 4 Reconciliation). |
DATATYPE_CODE |
Datatype (ACT, EST, BUD, etc.). |
COMMENT |
Row comment / narrative. |
UPDATEDDATE |
Last update timestamp. |
UPDATEMETHOD |
Update method descriptor / code. |
PERIOD_CODE |
Period identifier. |
PERIOD_POSITION |
Ordinal period (0 Opening, 1–12 Months, >=13 Extras). |
PERIOD_TYPE |
Period type (1 Beg value, 2 Normal, 3 Extra, 4 Quarter*). |
AMOUNTUNITPERIOD |
Period amount (unit currency). |
AMOUNTGROUPPERIOD |
Period amount (group currency). |
AMOUNTUNITCUMULATIVE |
Cumulative unit amount within partition. |
AMOUNTGROUPCUMULATIVE |
Cumulative group amount within partition. |
DIM00UNIT_CODE – DIM09UNIT_CODE |
Dimension unit identifiers. |
CODIM00UNIT_CODE |
Counter / intercompany dimension unit. |
PERIOD_STARTTIME |
Start timestamp of the financial period (from period table). |
PERIOD_ENDTIME |
End timestamp of the financial period. |
QUARTERPERIOD_CODE |
Quarter period identifier |
Example 1:
SELECT DATATYPE_CODE,
YEAR_CODE,
PERIOD_POSITION,
SUM(AMOUNTUNITPERIOD) AS PeriodAmount
FROM export.FM_FACTLEAFDATA
WHERE DATATYPE_CODE IN ('ACT','EST')
AND YEAR_CODE = 2024
GROUP BY DATATYPE_CODE, YEAR_CODE, PERIOD_POSITION;
Example 2: BEG, change and END balance
SELECT
l.YEAR_CODE
,l.VOUCHER_CODE
,l.DIM00UNIT_CODE
,l.ACCOUNT_CODE
,l.DATATYPE_CODE
,SUM(CASE WHEN l.PERIOD_POSITION=0 THEN l.AMOUNTUNITPERIOD ELSE 0 END) AS OPENBALANCE_UNITAMOUNT
,SUM(CASE WHEN l.PERIOD_POSITION=0 THEN l.AMOUNTGROUPPERIOD ELSE 0 END) AS OPENBALANCE_GROUPAMOUNT
,SUM(CASE WHEN l.PERIOD_POSITION=12 THEN l.AMOUNTUNITCUMULATIVE ELSE 0 END) - SUM(CASE WHEN l.PERIOD_POSITION=0 THEN l.AMOUNTUNITPERIOD ELSE 0 END) AS CHANGE_UNITAMOUNT
,SUM(CASE WHEN l.PERIOD_POSITION=12 THEN l.AMOUNTGROUPCUMULATIVE ELSE 0 END) - SUM(CASE WHEN l.PERIOD_POSITION=0 THEN l.AMOUNTGROUPPERIOD ELSE 0 END) AS CHANGE_GROUPAMOUNT
,SUM(CASE WHEN l.PERIOD_POSITION=12 THEN l.AMOUNTUNITCUMULATIVE ELSE 0 END) AS ENDBALANCE_UNITAMOUNT
,SUM(CASE WHEN l.PERIOD_POSITION=12 THEN l.AMOUNTGROUPCUMULATIVE ELSE 0 END) AS ENDBALANCE_GROUPAMOUNT
FROM
export.FM_FACTLEAFDATA l
WHERE 1=1
AND l.DATATYPE_CODE='ACT'
AND l.YEAR_CODE='2020'
GROUP BY l.YEAR_CODE
,l.VOUCHER_CODE
,l.DIM00UNIT_CODE
,l.ACCOUNT_CODE
,l.DATATYPE_CODE
GO;
Example 3:
;with data as(
SELECT
l.YEAR_CODE,
l.VOUCHER_CODE,
l.DIM00UNIT_CODE,
l.ACCOUNT_CODE,
SUM(iif(l.DATATYPE_CODE='ACT',l.AMOUNTUNITPERIOD,0)) AS act,
SUM(iif(l.DATATYPE_CODE='est',l.AMOUNTGROUPPERIOD,0)) AS est
FROM [export].[FM_FACTLEAFDATA] l
WHERE 1=1
and l.DATATYPE_CODE IN ('ACT','EST')
GROUP BY
l.YEAR_CODE,
l.VOUCHER_CODE,
l.DIM00UNIT_CODE,
l.ACCOUNT_CODE
)
select
YEAR_CODE,
VOUCHER_CODE,
DIM00UNIT_CODE,
ACCOUNT_CODE,
act as ACTUNITAMOUNT,
est AS ESTUNITAMOUNT,
ACT-EST DIFF
from data
View: export.VW_DATAMAIN_<DATATYPE> (Pattern for per-datatype period fact views)
Purpose
Provides a normalized (row-based) projection of periodized financial data for a single data type (e.g. ACT, BUD, FCT, PRO, EST, ...).
Use when need data only from singe Datatype, multiple datatypes(ACT,EST,BUD…) use FM_FACTDATALEAF.
Key Features
- Unpivots DATAMAIN_UNITAMOUNT0–DATAMAIN_UNITAMOUNT12 and DATAMAIN_GROUPAMOUNT0–DATAMAIN_GROUPAMOUNT12 into AMOUNTUNITPERIOD and AMOUNTGROUPPERIOD rows.
- Produces cumulative running totals (AMOUNTUNITCUMULATIVE, AMOUNTGROUPCUMULATIVE) using window functions partitioned by year, voucher, account, dimension, input type and position.
- Adds period metadata (PERIOD_CODE, PERIOD_POSITION, PERIOD_TYPE).
- Joins the datatype‑specific dimension table (FMDATADIM<DT>), exposing dimension unit codes (DIM00..DIM09 and CODIM00).
- Common structure across all datatypes; safe to UNION ALL (used by FM_FACTLEAFDATA).
Output Columns
Column |
Description |
|---|---|
YEAR_CODE |
Financial year identifier. |
VOUCHER_CODE |
Voucher identifier. |
DATADIM_CODE |
Data dimension surrogate key. |
VOUCHER_POSITION |
Row position within voucher (ordering of lines). |
ACCOUNT_CODE |
Account identifier. |
INPUT_TYPE |
Input type classification (0=Manual,1=Auto(Counter/RateDiff),2=Calculated,3=NCI,4=Reconciliation). |
DATATYPE_CODE |
Data type (ACT, BUD, FCT, ...). |
COMMENT |
Line comment / description. |
UPDATEDDATE |
Last modification timestamp. |
UPDATEMETHOD |
Method of update (text or code). |
PERIOD_CODE |
Period identifier (string). |
PERIOD_POSITION |
Period ordinal (0 Opening, 1–12 months, >=13 extras). |
PERIOD_TYPE |
Period type (1 Opening Balance, 2 Period changes, 4 Quarter aggregate). |
AMOUNTUNITPERIOD |
Period amount (unit currency). |
AMOUNTGROUPPERIOD |
Period amount (group currency). |
AMOUNTUNITCUMULATIVE |
Cumulative unit amount across ordered periods. |
AMOUNTGROUPCUMULATIVE |
Cumulative group amount across ordered periods. |
DIM00UNIT_CODE–DIM09UNIT_CODE |
Dimension unit identifiers for dimensions 00..09. |
CODIM00UNIT_CODE |
Counter / intercompany dimension code. |
Performance Notes
- Window functions (SUM OVER ...) compute running totals efficiently.
- Controlled CROSS JOIN with a filtered period set (RestrictedFinper) avoids scanning irrelevant period types.
- Consistent column ordering enables set-based UNION operations without reshaping.
Document / Voucher Series
View: export.FM_DOCUMENTSERIES
Overview (Document Series)
Exports document (voucher) series information with language‑specific details, limits and classification codes for each series. Designed to provide a unified lookup of series configuration for reporting and validation.
Output Columns
Column |
Description |
|---|---|
LAN_CODE |
Language identifier code. |
LAN_ISDEFAULT |
1 if this language is the default 0. |
VOUCHER_CODE |
Voucher identifier (converted to INT). |
VOUCHSERIE_CODE |
Voucher series unique identifier. |
VOUCHER_MINLIMIT |
Minimum voucher number allowed in the series (INT). |
VOUCHER_MAXLIMIT |
Maximum voucher number allowed in the series (INT). |
VOUCHER_TYPE |
Numeric classification of voucher type (see mapping below). |
VOUCHER_DESC |
Language specific description for the voucher series. |
Voucher Type Mapping
Code |
Meaning |
|---|---|
1 |
Profit & Loss and Balance Sheet |
2 |
Internal transactions |
3 |
Consolidation entries (input level) |
4 |
Elimination of inventories internal margin |
6 |
Equity eliminations and Goodwill |
7 |
Other eliminations |
8 |
Equity method consolidation |
23 |
Proportional consolidation adjustments (internal transactions) |
Export integration tools
- MS Azure Data Factory
- MS Azure Logic Apps
- SQL- query language