Difference between revisions of "Grid Calculations"

m (Text replacement - "XLCubed" to "FluenceXL")
 
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The {{Menu|Add Calculation}} option is available on the Grid's right mouse button pop-up menu.
+
Calculations can be added to any FluenceXL grid and allow for users to create quick calculations that might not be contained in the cube. These calculations can use any standard Excel formula, from simple sums to complex vlookups, as well as FluenceXL formulae and will be automatically propagated to all the other cells in the row or column. Grid calculations can be linked to grid members in order to respect drilling and swapping dimensions.
  
For example, if you have the {{Code|Time}} hierarchy on the columns and right click to add a Grid Calculation to {{Code|Q2}} you can add an additional {{Code|Q2-Q1}} delta column to the Grid. The column is inserted as an empty column to which you can add a title and formula. The formula can be typed into any of the cells, and will be propagated to all the other cells in the row or column automatically.
+
==Videos and Tutorials==
  
This column will be automatically refreshed as you drill or swap dimensions.
+
Click [[Grid Calculation Videos|here]] for videos showing grid calculations.
  
You can view or delete the inserted rows/columns on the {{Menu|XLCubed|Calculation|Manage Calculations}} form.
+
This page contains some examples of using grid calculations: [[Tutorial: Grid Calculations]].
  
==Video demonstration==
+
==Creating and Managing Grid Calculations==
  
Click [[Grid Calculation Videos|here]] for videos showing grid calcualtions.
+
The {{Menu|Add Calculation}} option is available on the Grid's right mouse button pop-up menu. Alternatively, grid calculations can be added from the '''Row Calculation''' or '''Column Calculation''' menus in the Grid ribbon (visible when selected cell is on grid).
  
==Examples (based on the [[BicycleSales Demo Cube|Bicycle Sales cube]])==
+
[[File:GridCalcRibbon.PNG|center]]
''We want to see the difference between {{Code|2004}} and {{Code|2003}} in a Grid.''
 
<ol>
 
<li value="1">Insert a Grid based on the Bicycle Sales demo cube, with the {{Code|Time}} hierarchy on columns</li>
 
<li value="2">Drill down {{Code|Time}}'s {{Code|All}} member by double-clicking on {{Code|B5}}: </li>[[File:GridCalculationsExample1.png|center|400px]]
 
<li value="3"> Right-click on {{Code|2004}} ({{Code|E5}}) and choose {{Menu|XLCubed|Add Calculation}} </li>[[File:GridCalculationsExample2.png|center|thumb|400px]]
 
<li value="4">In the title cell ('''Calc''', {{Code|F5}}), type a name for the Calculation:</li> [[File:GridCalculationsExample3.png|center|400px]]
 
<li value="5"> In one of the column's data cells (for example, {{Code|F6}}) type the formula for the Calculation, {{Code|1==E6-D6}}. You may need to resize the column:</li> [[File:GridCalculationsExample4.png|center|400px]]
 
<li value="6"> The Grid Calculation column will now be used, even if the structure of the Grid is changed: </li>[[File:GridCalculationsExample5.png|center|400px]]
 
</ol>
 
  
==More examples - Grid Calculations==
+
An empty calculation will be added below the current cell. The formula can be typed into any of the cells, and will be propagated to all the other cells in the row or column automatically. Overtyping the title cell (defaults to 'Calc') will give the calculation a title.
  
This is how you can add a grid calculation that is not tied to members.
+
Double clicking the title cell opens the Edit Grid Calculation dialog. This can also be accessed from {{Menu|FluenceXL|Calculation|Edit Calculations}} right click option. In this dialog you can edit the title, number format and calculation position.
  
A typical scenario would be a grid report that needs to show two different years on columns where the years can change.
+
[[File:GridCalcEdit.PNG|center|500px]]
  
There are two methods to achieve the desired result: the first uses Excel functionality outside of the XLCubed grid, the second uses XLCubed grid calculation functionality referring to cell locations.
+
===Calculation Position===
 +
'''Link to member''' - position the calculation either before of after a slice in the grid (shown in the members box at the bottom of the dialog). This means that the calculations can be highly dynamic, appearing in the grid wherever the pinned member does, even after the member moves due to drilling or slice and dicing.
  
===Option 1: using Excel functionality===
+
'''Insert at position''' - fixes the calculation to a certain row/column in the grid (available from Version 8). This is useful, for example, when calculating the difference between two members, irrespective of what members have been selected. The formula will be treated as a literal Excel cell references rather than pinned to particular members in the cube.
  
[[Image:GC1.png|350px|centre]]
+
'''Insert at end''' - insert the calculation at the end of the rows/columns, even when drilling.
  
1. Use Excel to create a calculation outside of the grid – in this example enter formula in cell E6 as follows: =C6+D6
+
'''Attached to''' - If a calculation is fixed to a hierarchy, then it will move with the hierarchy if it is swapped between rows and columns. From version 9, it is possible to attach the calculation to an axis so that it remains on that axis even if the grid structure is changed.
  
2. As you can see in the screenshot below, Excel has filled in the sum of C6+D6
+
===Deleting Calculations===
  
[[Image:GC2.png|350px|centre]]
+
You can view, manage and deleting existing calculations in the {{Menu|FluenceXL|Calculation|Manage Calculations}} dialog (also accessible through the Grid ribbon). A calculation can also be deleted by selecting the {{Menu|FluenceXL|Calculation|Delete Calculation}} right click option.
  
3. Right-click grid, Properties and on Behaviour tab check Fill Formulae next to Grid.
+
==Group Members==
  
[[Image:GC3.png|350px|centre]]
+
Users can quickly add custom member groupings into their reporting - these calculations will then available for selection from the member selector across all grids and formulae sharing the same cube connection within the workbook.  
  
4. You can see the calculation has been done for all rows in grids.
+
To add a grouping, go into the the grid designer and in the member selector select the members you wish to group (holding Ctrl will allow you to select more than one member). Right click and select '''Group Members'''. You can then define a name for the grouping, the type of aggregate to be applied and the parent member the calculation will appear under.  
  
[[Image:GC4.png|350px|centre]]
+
<gallery heights=200px  widths=400px mode="nolines" class="center">
 +
File: GroupMembersMenu.PNG
 +
File: GroupMembersDialog.PNG
 +
</gallery>
  
===Option 2: using XLCubed Grid Calculations===
+
The calculation will then appear in the member selector under the defined parent with the defined name. This can then be selected to be used as part of the grid.
  
1. Add a grid calculation
+
[[image:GroupMembersSelected.PNG|centre|300px]]
  
[[Image:GC5.png|350px|centre]]
+
If you wish to amend or delete the calculation, select the '''Custom Calculations''' tab on the FluenceXL ribbon. This shows all user defined calculations in the workbook which can then be edited or deleted.
  
2. Right-click to edit the calculation
+
[[image:GroupMembersCalcManage.PNG|centre|480px]]
 
[[Image:GC6.png|350px|centre]]
 
  
3. In the window above delete everything in the Value area and enter a formula that refers to the cell locations eg =C6+D6.
+
==Calculated Values on Measures ==
  
[[Image:GC7.png|350px|centre]]
+
Within the Measures [[Hierarchy Editor]], you can perform a calculation on a measure by right clicking and selecting 'Calculated value...'. This will open the [[MDX formula wizard]] from which you can create various calculations such as a calculation which will show percentage contribution to specific levels in a chosen hierarchy (measure to base).
  
4. Uncheck anything in the ''Attached to'' area and also select ''Insert at end''.
+
From [[Version 9.1]], this wizard also includes common time calculations such as Year to Date (YTD), Month to Date (MTD), Rolling Total and Previous Period. See [[MDX_formula_wizard|MDX formula wizard]].
  
[[Image:GC4.png|350px|centre]]
+
<gallery mode="nolines" widths=400px heights=350px class="center">
+
File: MeasuresCalc.PNG
5. The screenshot above shows that the calculation has been done for all rows.
+
File: MDXCalcWizard.PNG
 +
</gallery>
  
==Member Selector and Adhoc Groupings==
+
== Pareto Columns (new in v7.2) ==
  
Users can quickly add custom groupings into their reporting, with the calculations then available for selection from the member selector across all grids and formulae sharing the same cube connection within the workbook. This is done on the right click menu in the member selector as shown below:
+
The Pareto Principle is often referred to as the 80-20 rule, that 80% of outcomes are attributable to 20% of causes. They are named after Vilfredo Pareto who lived in Italy in the 19thcentury and observed that 80% of the land was owned by 20% of the people.   Pareto charts have both bar charts and a line graph where the bars represent individual values and the line represents the cumulative total.
  
[[image:GridCalc1.png|left|300px]]
+
To use Pareto Charts from FluenceXL, within a grid, right-click on the column header to access FluenceXL’s right-click menu, Grid Charts and Add Pareto Analysis.
[[image:GridCalc2.png|right|300px]]
 
  
 +
Take this simple grid showing Reseller Sales for Product Model Categories for Canadian cities:
  
#Choose the members to group, and select group members.
+
[[Image:p1.png|200px|centre]]
#Then name the grouping as required, and choose the parent element which the group is to appear under.
 
  
[[image:GridCalc3.png|centre|300px]]
+
Right-clicking on All Products to Add Pareto Analysis brings up this window:
  
 +
[[Image:p2.png|300px|centre]]
  
The new element will appear as a custom calculation. If you wish to amend or delete it, select the custom calculation tab on the  
+
Click OK to return to the workbook and you will see that we have a chart showing that the top 9 cities provide some 80% of the sales.
XLCubed ribbon.  
 
  
[[image:GridCalc7.png|centre|300px]]
+
[[Image:p3.png|300px|centre]]
 +
 +
You could also include the rolling total and percentage in your Pareto Chart.
  
== Share to Base: Calculated Value on Measures ==
+
Notice that we now also have some extra columns on the grid showing the cumulative total of all sales, the sales percentage per category and the cumulative percentage.
 
+
For measures, users can add a calculation which will show percentage contribution to specific levels in a chosen hierarchy. This is available in the member selector for measures, on the right click menu as shown below.
+
[[Image:p4.png|300px|centre]]  
[[image:GridCalc4.png|left|300px]]
+
 
+
So that's Pareto Charts - in a nutshell, an easy to use graphical tool which ties directly into dynamic FluenceXL grids.
[[image:GridCalc5.png|right|300px]]
 
  
  
#In this example a calculation is added to show the Reseller sales amount
 
#as a percentage of the parent at the country level in the  Geography hierarchy.
 
  
[[image:GridCalc6.png|centre|300px]]
 
 
[[Category:Grid Reporting]]
 
[[Category:Grid Reporting]]
 +
[[Category:Getting Started]]
 
[[Category:Report Management]]
 
[[Category:Report Management]]

Latest revision as of 02:57, 4 July 2023

Calculations can be added to any FluenceXL grid and allow for users to create quick calculations that might not be contained in the cube. These calculations can use any standard Excel formula, from simple sums to complex vlookups, as well as FluenceXL formulae and will be automatically propagated to all the other cells in the row or column. Grid calculations can be linked to grid members in order to respect drilling and swapping dimensions.

Videos and Tutorials

Click here for videos showing grid calculations.

This page contains some examples of using grid calculations: Tutorial: Grid Calculations.

Creating and Managing Grid Calculations

The Add Calculation option is available on the Grid's right mouse button pop-up menu. Alternatively, grid calculations can be added from the Row Calculation or Column Calculation menus in the Grid ribbon (visible when selected cell is on grid).

GridCalcRibbon.PNG

An empty calculation will be added below the current cell. The formula can be typed into any of the cells, and will be propagated to all the other cells in the row or column automatically. Overtyping the title cell (defaults to 'Calc') will give the calculation a title.

Double clicking the title cell opens the Edit Grid Calculation dialog. This can also be accessed from FluenceXL > Calculation > Edit Calculations right click option. In this dialog you can edit the title, number format and calculation position.

GridCalcEdit.PNG

Calculation Position

Link to member - position the calculation either before of after a slice in the grid (shown in the members box at the bottom of the dialog). This means that the calculations can be highly dynamic, appearing in the grid wherever the pinned member does, even after the member moves due to drilling or slice and dicing.

Insert at position - fixes the calculation to a certain row/column in the grid (available from Version 8). This is useful, for example, when calculating the difference between two members, irrespective of what members have been selected. The formula will be treated as a literal Excel cell references rather than pinned to particular members in the cube.

Insert at end - insert the calculation at the end of the rows/columns, even when drilling.

Attached to - If a calculation is fixed to a hierarchy, then it will move with the hierarchy if it is swapped between rows and columns. From version 9, it is possible to attach the calculation to an axis so that it remains on that axis even if the grid structure is changed.

Deleting Calculations

You can view, manage and deleting existing calculations in the FluenceXL > Calculation > Manage Calculations dialog (also accessible through the Grid ribbon). A calculation can also be deleted by selecting the FluenceXL > Calculation > Delete Calculation right click option.

Group Members

Users can quickly add custom member groupings into their reporting - these calculations will then available for selection from the member selector across all grids and formulae sharing the same cube connection within the workbook.

To add a grouping, go into the the grid designer and in the member selector select the members you wish to group (holding Ctrl will allow you to select more than one member). Right click and select Group Members. You can then define a name for the grouping, the type of aggregate to be applied and the parent member the calculation will appear under.

The calculation will then appear in the member selector under the defined parent with the defined name. This can then be selected to be used as part of the grid.

GroupMembersSelected.PNG

If you wish to amend or delete the calculation, select the Custom Calculations tab on the FluenceXL ribbon. This shows all user defined calculations in the workbook which can then be edited or deleted.

GroupMembersCalcManage.PNG

Calculated Values on Measures

Within the Measures Hierarchy Editor, you can perform a calculation on a measure by right clicking and selecting 'Calculated value...'. This will open the MDX formula wizard from which you can create various calculations such as a calculation which will show percentage contribution to specific levels in a chosen hierarchy (measure to base).

From Version 9.1, this wizard also includes common time calculations such as Year to Date (YTD), Month to Date (MTD), Rolling Total and Previous Period. See MDX formula wizard.

Pareto Columns (new in v7.2)

The Pareto Principle is often referred to as the 80-20 rule, that 80% of outcomes are attributable to 20% of causes. They are named after Vilfredo Pareto who lived in Italy in the 19thcentury and observed that 80% of the land was owned by 20% of the people. Pareto charts have both bar charts and a line graph where the bars represent individual values and the line represents the cumulative total.

To use Pareto Charts from FluenceXL, within a grid, right-click on the column header to access FluenceXL’s right-click menu, Grid Charts and Add Pareto Analysis.

Take this simple grid showing Reseller Sales for Product Model Categories for Canadian cities:

P1.png

Right-clicking on All Products to Add Pareto Analysis brings up this window:

P2.png

Click OK to return to the workbook and you will see that we have a chart showing that the top 9 cities provide some 80% of the sales.

P3.png

You could also include the rolling total and percentage in your Pareto Chart.

Notice that we now also have some extra columns on the grid showing the cumulative total of all sales, the sales percentage per category and the cumulative percentage.

P4.png

So that's Pareto Charts - in a nutshell, an easy to use graphical tool which ties directly into dynamic FluenceXL grids.