Framework:CoPlanner cube designer

From CoPlanner 11
Jump to navigationJump to search

In this example, a user-defined profit and loss account is created as a CoPlanner cube according to the aggregate cost method. Apart from the representation of plan and actual values, the variance is to be calculated as an absolute value and in percent.

Entry  Click on the “My objects” directory with the right mouse button. From the “New” context menu, select the command “CoPlanner cube”


Framework, BI Center, creating a new CoPlanner cube

The dialog “CoPlanner cube” is displayed.

Framework, BI Center, name of the CoPlanner cube
Entry  Enter the name of the new CoPlanner cube, “My P&L”, and confirm by clicking OK.

The new CoPlanner cube object “;My P&L” is created and the CoPlanner cube designer is opened. The following screen is presented.

Framework, BI Center, CoPlanner cube designer

The CoPlanner cube designer contains five tabs.

  • Structure and object selection
  • Dimensions
  • Measures
  • Preview


Ribbon

The icons in the toolbar have the following functions:

Framework, CoPlanner cube designer, Ribbon


Button Action
Save
Save as

Not in use

Reload connectors

During a session, changes in the OLAP database are only reloaded from the server after a click on this button.

Search

Search in the object tree


“Data sources“ tab

In this tab, the data basis is defined. The available data objects are shown in the left tree of the designer. These are arranged by CoPlanner tables, CoPlanner cubes and OLAP cubes. You can change the width of the tree by clicking on the right edge with the left mouse button. With the button held down, make the area bigger or smaller.

Framework, BI Center, changing the width of the object tree
Entry  As the data basis, choose the CoPlanner tables and “P&L_aggregate cost method_PLAN” and “P&L_ aggregate cost method_ACTUAL”. Using drag & drop, drag these tables to the working area.
Framework, BI Center, Structure and object selection

Properties in the “Data sources” tab

In the right part of the Designer, the properties of the data objects are shown.

Framework, BI Center, property of the data object

Alias

This text is shown.

IsPlanDependent

Provides information whether the data object is plan dependant, i.e. whether the data acquired by the user are written to the plan selected at login, or whether this characteristic is not relevant (actual data).

Special

CUSTOMROLLUP=LASTMONTHONYEAR;

Overrides the annual value in the time dimension and instead shows the value of the last month of the year.

CUSTOMROLLUP=FIRSTMONTHONYEAR;

Overrides the annual value in the time dimension and instead shows the value of the first month of the year.

CUSTOMROLLUP=LASTNONEMPTYMONTHONYEAR;

Overrides the annual value in the time dimension and instead shows the value of the last non-empty month of the year.

CUSTOMROLLUP=LASTCHILDONPARENT;

Overrides the value of nodes on the time axis (or a time subset) and instead shows the value of the last leaf element.


Hint  Is applied when time subsets are used.

CUSTOMROLLUP=FIRSTCHILDONPARENT;

Overrides the value of nodes on the time axis (or a time subset) and instead shows the value of the first leaf element.

Hint  Is applied when time subsets are used.


Entry  Give the table “P&L_aggregate cost method_PLAN” the alias “P&L plan” and give the table “P&L_ aggregate cost method_ACTUAL” the alias “P&L actual”.

Activate the “Dimensions” tab.


“Dimensions” tab

The “Dimensions” tab shows all dimensions assigned to the data objects, whereas identical dimensions contained in the data objects are connected and assigned. Assigned dimensions are indicated with a green check , non-assigned dimensions or dimensions that cannot be assigned are shown on a grey background.

Framework, BI Center, Dimensions tab

You can break an assignment of the dimension by clicking on the corresponding element. In the same manner, you can also re-establish an assignment. To delete a dimension, all assignments must be broken first. Then the “Delete” button will show up next to the dimension, and the dimension can be removed.

Entry  Choose the “Sub_P&LACM” subset from the “Dimensions” tree.

The following screen is presented.

Framework, BI Center, Adding a subset

For both data objects, the assignment is shown on a grey background.

Entry  Click the black arrow in the grey element.

A dialog to select the subset opens. Only the possible assignments are shown in black.

Framework, BI Center, possible assignments
Entry  Select the entry Sub_P&LACM for both elements.

In the corresponding element, the “Manually assigned” icon is displayed. This data object is now linked with this subset.

Framework, BI Center, manually assigned subset

The dimension “P&L structure” is not required any more and deleted.

Entry  In the data objects, click on the elements “P&L structure” and break the assignment. Then the dimension can be deleted.

You will see the following screen:

Framework, BI Center, dimensions

Properties in the “Dimensions” tab

In the right part of the designer, the properties of the dimensions are shown.

Alias

This text is shown.

IsPlan

Provides information whether the dimension is the CoPlanner system dimension “Plan”. If the dimension is the plan dimension, it can only be applied to data objects if “IsPlanDependent”, has been set as the property of the data source.


Entry  Activate the “Measure” tab.


“Measure” tab

In the “Measure” tab, you define which measures are shown.

Hint  Please note that a measure cannot have the same denomination as a dimension

Here you also set the number format. This will be used for all later analyses.

Another possibility in this step is the display of cumulated values.

In this example, the values of the individual periods and the cumulated value are to be shown.

Entry  At first drag the “Value” element of the “P&L Plan” data object to the working area, and then the “Value” element of the “P&L Actual” data object.

Repeat this procedure.

The following screen shows up:

Framework, BI Center, “Measure” tab
Entry  Highlight the first entry and under the property “alias” allocate the name “Plan value”. Enter “n2” under the “Number format” property for an integer with 2 decimal places.
Framework, BI Center, properties of a measure
Entry  Activate the second measure, “Value_1”, and allocate the alias “Actual value”, giving it the number format “n2”.

The measures “Value_2” and “Value_3” should now show the cumulated plan respectively the actual value.

Entry  Activate the third measure, “Value_2”, and allocate the alias “Plan value cum“, giving it the number format “n2”. Now from the list of the property “CumSettingType”, choose the entry “Fiscal year”, and from the list of the property “CumSettingColumn” choose the entry “Time”.

The fourth element, “Value_3”, receives the alias “Actual value cum” and the same settings as the previous element.

Framework, BI Center, Properties of a measure, cumulated

Properties in the “Measure” tab

In the right part of the designer, the properties of the measures are shown.

AggregationsType

Specifies how subordinated elements are aggregated (projected) in the sum element above.

SUM: Subelements are added AVG: Subelements are averaged

Alias

This text is shown.

CalcBackExpression

As the name suggests, this special setting permits “back calculation”, for instance

calcback[MeasureTarget]=[Measure1]*[Measure2];

In the example quantity x price=turnover, let the quantity and the price be database fields and the turnover a calculated field. In order to determine the necessary quantity by entering a value in the ‘Turnover’ field, the following formula is used:

calcback [Quantity]=[Turnover]/[Price];

Quantity is the field whose value is changed – the formula after the “=” character provides the calculation of the new quantity. As it is always advisable, in the case of divisions, to prevent a division by 0, it is recommended to extend the expression as follows:

calcback [Quantity]=IIF([Price]=0,[ Quantity],[Turnover]/[Price]);

This now prevents a change of the ‘Quantity’ field if the ‘Price’ field is still 0 when a turnover is entered. Rewriting into several fields simultaneously is also supported – various CalcBack instructions are simply separated with semi-colons.


Note  If a table and a writable column are additionally selected, this field will be written simultaneously as well.

Formulae in CalcBack expressions are to be defined like in the ‘Expression’ field (see below).

Expression

If the measure is calculated via a formula, it is shown here.

NumberFormat

Definition of the number format. The following are allowed:

  • for integers: n0…n2, #.##0.00, etc.
  • percentages: p0…p2, 00.00%, etc.

ReadOnly

Defines whether this column is to be write-protected.

CumSettingType

Setting of the cumulation. The following possibilities are available for selection:

  • CalendarYear
  • FiscalYear
  • Ongoing
  • Month
  • Quarter
  • Week

CumSettingColumn

CumSettingColumn offers the dimensions of the data source for selection over which a cumulation is to be performed.

ShiftCol

This offers the dimensions of the data source to which a time shift can be applied.

Shift_Interval

Number of periods that are to be shifted. A forward and backward time shift is possible and defined by using the (+/-)sign.

TimeDimType

Days/Calendar week/Month/Quarter/Year – defines the type of the period that is to be shifted.

Entry  Activate the “Calculated measure” tab

“Calculated measure”

In diesem Beispiel wird die Abweichung zwischen Plan- und Istwerten absolut und in Prozent errechnet, jeweils für die einzelnen Perioden und kumulierten Werte. Im linken Baum befindet sich in der ersten Gruppe „Neues berechnete Measure“ die Schaltfläche „Hinzufügen“. Ziehen Sie diese mittels Drag & Drop im Arbeitsbereich an die gewünschte Stelle.

File:Fw BI Center Register Berechnete Measure.jpg
Framework, BI Center, Register Berechnete Measure
Eingabe  Legen Sie ein neues Measure an. Markieren Sie das Measure und vergeben Sie die Caption „Abweichung“ und vergeben Sie bei der Eigenschaft „NumberFormat“ das Zahlenformat „n2“.
File:Fw BI Center Register Berechnete Measure01.jpg
Framework, BI Center, ein berechnetes Measure anlegen

Ein Klick auf die Schaltfläche „Formel erstellen“ öffnet den Formeleditor. Ziehen Sie einfach mittels Drag & Drop die gewünschten Measure in den Formelassistenten. Als Rechenoperationen sind alle Grundrechnungsarten erlaubt. Des Weiteren sind alle Funktionen des CoPlanner Rechenwerks (FKT_TimeDimAdd, FKT_GetRecord, usw.) verfügbar.

Eingabe  Ziehen Sie im Anschluss mittels Drag & Drop zuerst das Measure „Planwert“ in den Formelassistenten. Danach schreiben Sie ein Minus „-„ und ziehen anschließend das Measure „Istwert“ in den Formelassistenten.

Sie erhalten folgende Ansicht:

File:Fw BI Center Register Berechnete Measure02.jpg
Framework, BI Center, ein berechnetes Measure erstellen

Das zweite berechnete Measure soll diese Abweichung in Prozent anzeigen.

Eingabe  Schließen Sie den Formeleditor.

Legen Sie ein neues Measure an und vergeben Sie die Caption „in Prozent“. Als Zahlenformat geben Sie bei der Eigenschaft „Numberformat“ „p2“ ein.

Hinweis  Der Formelassistent unterstützt die Verwendung bereits erstellter berechneter Measures.


Eingabe  Ziehen Sie das berechnete Measure „[Abweichung]“ in den Formeleditor und geben danach das Zeichen für Division „/“ ein. Vervollständigen Sie die Formel indem Sie mittels Drag & Drop das Measure „Planwert“ in den Formelassistenten ziehen. Multiplizieren Sie zum Schluss diese Formel mit 100.
File:Fw BI Center Register Berechnete Measure03.jpg
Framework, BI Center, das berechnete Measure „in Prozent“ erstellen

Gehen Sie für die Erstellung der Abweichung absolut und in Prozent für die kumulierten Werte ge-nauso vor wie in den vorangegangenen Schritten erklärt. Sie erhalten als Ergebnis folgendes Aussehen.

File:Fw BI Center Register Berechnete Measure04.jpg
Framework, BI Center, Ergebnis der berechneten Measure
Eingabe  Aktivieren Sie das Register „Vorschau“.


Register „Vorschau“

Im diesem Register wird das Ergebnis des CoPlanner Würfels angezeigt. Im linken Baum werden die zur Verfügung stehenden Dimensionen und Measure angezeigt. Diese können mittels Drag & Drop oder mittels Mausklick der Auswertung als Filter bzw. Measure hinzugefügt werden. Im rechten Bereich werden allgemeine Eigenschaften der Auswertung dargestellt.

File:Fw BI Center Register Vorschau.jpg
Framework, BI Center, Register Vorschau


Hinweis  Eine Aktivierung des Registers „Vorschau“ speichert sämtliche bis dahin vorgenommene Anpassungen.


Eingabe  Ordnen Sie die Dimension „Sub_GuVGKV“ der vertikalen Achse zu, die „Zeit“ der horizontalen Achse. Als Filter wählen Sie den „Plan“, das „Unternehmen“ und die Dimension „PC/KST“.

Mittels des Dialogs „Measure auswählen“ können Sie jene Measure festlegen, die angezeigt werden sollen und deren Reichenfolge in der Achse festlegen.

File:Fw BI Center Register Vorschau Measureauswahl.jpg
Framework, BI Center, Register „Vorschau“, Measure auswählen

Exkurs: Konnektorenverknüpfung

Im CoPlanner Würfel Designer besteht die Möglichkeit Daten verschiedener Herkunft miteinander zu verknüpfen. Im folgenden Beispiel werden Ist-Daten aus einer OLAP-Datenbank mit einer CoPlanner Tabelle verbunden. Dadurch kann man in einer Eingabemaske Istdaten aus einem OLAP-Würfel angezeigt und Plandaten in die CoPlanner-Datenbank erfassen. Um OLAP-Würfel im CoPlanner Würfel Designer als Datenquelle zur Verfügung zu haben, müssen die entsprechenden Einträge im CoPlanner „SvrConfig.xml“ vorhanden sein.

<OLAPSERVER>localhost</OLAPSERVER>
<OLAPDB>COP_OLAP</OLAPDB>

In diesem Beispiel steht der OLAP Würfel „OLAPUmsatzerlöse IST“ zur Verfügung.

Eingabe  Legen Sie einen neuen CoPlanner Würfel an mit der Bezeichnung „Würfel Umsatz kombiniert“ und filtern Sie im Register „Datenquellen“ nach Umsatz.
File:Fw BI Center Konnektoren01.jpg
Framework, BI Center, Konnektorenverknüpfung

Als zusätzliche Datenquelle werden OLAP-Würfel angezeigt.

Eingabe  Wählen Sie als Datenquelle aus dem Bereich „Olap Würfel“ den Würfel „Olap“Umsatzerlöse Ist“ und aus dem Bereich „CoPlanner Tabellen“ die Tabelle „Umsatzerloese_Plan“.
File:Fw BI Center Konnektoren02.jpg
Framework, BI Center, CoPlanner Tabelle und OLAP-Würfel als Datenquelle

Im Register Dimensionen werden im Bereich „Würfel Umsatz kombiniert“ alle zur Verfügung stehenden Dimensionen angezeigt. Hier erfolgt die Verknüpfung der OLAP-Dimensionen mit dem CoPlanner Dimensionen mittels dem Befehl „Dimensionen verknüpfen“ aus dem Kontextmenü.

File:Fw BI Center Konnektoren03.jpg
Framework, BI Center, CoPlanner Tabelle und OLAP-Würfel - Dimensionen
Eingabe  Öffnen Sie den Dialog „Dimensionen verknüpfen“ mittels einen rechten Mausklick auf der Dimension „OlapPcKst“.

Dimensionen können mit allen zur Verfügung stehenden Attributen verknüpft werden. Die Dimension „OlapPcKst“ wird über der Attribut „COPSYS_ID“ mit der CoPlanner Dimension „PC/KST“ verknüpft.

File:Fw BI Center Konnektoren04.jpg
Framework, BI Center, Dimensionen verknüpfen
Eingabe  Aktivieren Sie in der Liste „Attribut der Quelldimension“ den Eintrag „COPSYS_ID“ und in der Liste „Zieldimension“ die CoPlanner Dimension „PC/KST“. Wählen Sie aus der Liste „Attribut der Zieldi-mension“ ebenfalls den Eintrag „COPSYS_ID“.
File:Fw BI Center Konnektoren05.jpg
Framework, BI Center, Dialog-Dimensionen verknüpfen
Eingabe  Bestätigen Sie mit „OK“.

Verknüpfen Sie auf die gleiche Weise die Dimensionen „Produkte“, „Unternehmen“ und „Zeit“.


Hinweis  Verknüpfungen von Dimensionen können auch über die Bezeichnung erfolgen.
File:Fw BI Center Konnektoren06.jpg
Framework, BI Center, Darstellung der verknüpften Dimensionen

Mittels Kontextmenü lassen sich bestehende Verbindungen wieder lösen.

Hinweis  Erstellen Sie die Verknüpfung von der OLAP-Dimension auf die CoPlanner Dimension um die Dateneingabe zu ermöglichen.


Eingabe  Definieren Sie im Register Measure folgende Measure:
Umsatz Ist aus „OlapUmsatzerlöse Ist“
Menge Plan aus „Umsatzerloese_PLAN“
Preis Plan aus „Umsatzerloese_PLAN“
Umsatz Plan aus „Umsatzerloese_PLAN“
File:Fw BI Center Konnektoren07.jpg
Framework, BI Center, Erstellen der Measure

Im Register „Vorschau“ können Sie sich das Ergebnis ansehen.