How to use Nexel to select custom time periods
1. Abstract
While conducting reporting, the essential requirement often arises to compare data across various time periods.
This article introduces a method that enables users to choose a specific custom timeframe directly on the screen.
Using a designated cube, users can dynamically select pre-defined custom periods.
2. Context
Native functions such as Previous Year, Year to Date, and Current Year can be configured in the screen selector object with dynamic selection options.
However, when it comes to specific functions like rolling "x" months or others, there is no native feature available.
This approach enables the consolidation of all required temporal functions into a unified entity.
3. Content
3.1 Entity creation
To begin, the initial step is to establish a new entity titled "Time Selector".
Within this entity, various members will be defined to represent the custom periods, to name some examples:
- Rolling 6 months
- Rolling 18 months
- Previous Month
- Next Month
- Previous Year
- Current Year
- Year to Date
3.2 Cube creation
Following the creation of the 'Time Selector' entity, the next step involves creating a cube with two dimensions: Month and Time Selector.
To dynamically populate this cube, a specific procedure must be executed.
3.3 Nexel configuration
The initial step involves crafting a screen with distinct data views, each corresponding to one member within the Time Selector Entity.
Subsequently, we will employ Nexel to fill the 'Time Selector' Cube.
The Nexel Function can be accessed from the sliding toolbar of the data view object:
3.3.1 Six Months Rolling
Layout configuration - Axes
Display by Row: Time Selector and Month entities
Layout configuration – Blocks
Block h must be data entry enabled.
Save the Nexel Layout as 'Nexel 6 months rolling' and enable the 'Allow Write in Place' option.
This ensures that this configuration is accessible from the dropdown list during the Nexel calculation step procedure.
3.3.2 Eighteen Months Rolling
We can leverage the existing configuration but make modifications to block g as follows:
Block h must be data entry enabled.
Save the Nexel Layout as 'Nexel 18 months rolling' and enable the 'Allow Write in Place' option.
This ensures that this configuration is accessible from the dropdown list during the Nexel calculation step procedure.
3.3.3 Previous Month
Layout configuration – Axes
Display by Row: Time Selector and Month entities
Layout configuration – Blocks
Block e must be data entry enabled.
Save the Nexel Layout as 'Nexel previous month' and enable the 'Allow Write in Place' option.
This ensures that this configuration is accessible from the dropdown list during the Nexel calculation step procedure.
3.3.4 Next Month
We can leverage the existing configuration but make modifications to block d as follows:
Block e must be data entry enabled.
Save the Nexel Layout as 'Nexel next month' and enable the 'Allow Write in Place' option.
3.3.5 Previous Year
Layout configuration – Axes
Display by Row: Time Selector and Month entities
Layout configuration – Blocks
Block e must be data entry enabled.
Save the Nexel Layout as 'Nexel previous year' and enable the 'Allow Write in Place' option.
3.3.6 Current Year
We can leverage the existing configuration but make modifications to block c as follows:
Block e must be data entry enabled
Save the Nexel Layout as 'Nexel current year' and enable the 'Allow Write in Place' option.
3.3.7 Year to Date
Layout configuration - Axes
Display by Row: Time Selector and Month entities
Layout configuration – Blocks
Block l must be data entry enabled.
Save the Nexel Layout as 'Nexel YTD' and enable the 'Allow Write in Place' option.
3.4 Procedure creation
Once the layout configurations have been established and saved, they can be accessed through the dropdown list within the Nexel calculation step procedure.
The purpose of implementing a daily procedure is to populate the cube by utilizing the Nexel writeback step in conjunction with the selection on the time selector entity.
It is imperative that the selection is consistently injected before executing each Nexel step, and the format of the procedure will appear as follows:
3.5 Usability
Within a screen, we have the capability to establish a dynamic selection for the "month" entity, leveraging the "Time Selector" cube.
A selector representing the "Time Selector" entity can be displayed on the screen.
Consequently, when a user chooses a specific option (such as rolling 12 months), the screen will automatically adjust to highlight the corresponding 12 months through the dynamic selection.
4. Conclusion
This can be a solution to meet specific time analysis requirements and does not affect the integrity of the existing data model in any way.
Comments
-
Thanks @Vincenzo Vitucci for the insights on this article!
3 -
Hi. Pretty interesting idea.
can these entities be used as block references?
Thanks Maik.0 -
Hi @Maik Burghardt ,
Block references can only be set on entities that are dimensions of the cube you want to set the reference on.
Hope that helps,
Helmut
1 -
Really useful tip, not just for screen selectors but also for procedure selections using the selector cube as well.
1 -
Hi,
The formula specified in the tables above , are they nexel formula that needs to be input in the nexel layout editor.
How to save the nexel layout. I am a bit lost. I need to be in play mode to access the nexel formula.
kindly help
Rgds
0 -
Hello @Khaleelah,
Yes, these are formulas that need to be input into the Nexel editor.
The Nexel layout need to be saved in a dedicated screen.
You need to be in edit mode to modify and input the formulas.
You can find all the info you are asking here:
0