Power User - Advanced Course
New sections added in March 2022:
- Settings Service (UX placeholders used in hierarchy context, Nested UX placeholders)
This functionality allows users to dynamically define a dimension hierarchy using a placeholder. After clicking Select button the Hierarchy dropdown list will be changed to text box to enable placeholder input.
To showcase this example we will create new view:
- Select Add public... option inside App Templates - Views folder
- Do the following configuration inside the popup:
- Add view title e.g. Dynamic hierarchy
- Change the Cube Source by selecting Retail from the dropdown list
- Click Create button
Publish the view.
Next, we are going to set up the view:
- Open cube settings popup
- Drag and drop:
- Version, Year, Region to Global filters
- Currency and Retail Measure to Global fixed settings
- Period to Row Dimensions
- Product to Column Dimensions
- Configure the Dimensions:
- Version, Year, Region: Default subset, Code and Description attribute
- Currency: Local fixed value
- Retail Measure: Sales Amount fixed value
- Period: Default subset, Short Description attribute
Now we will set up Product dimension to dynamically change based on the hierarchy selected:
- Click Add Dimension (+ icon) button in Global Settings section
- Choose Product from the list
- Click Add Dimension button
- Click Add button again
- Set Control objects option to Yes
- Choose }Hierarchies_Product from the list
- Click Add Dimension button
- Select }Hierarchies_Product dimension
- Open Subset Editor
- Click All button
- Select Product:Color and Product:Size
- Click Apply
- Select Product global filter dimension
- Click Select button visible above Hierarchy dropdown list
- In the editable text box input UX Placeholder: $<<UX_Demo.}Hierarchies_Product.}Hierarchies_Product>>
- Change the list type to MDX
- Select Product dimension added in columns
- Add the same placeholder in the Hierarchy text box
- Change the list type to MDX
- Close the cube settings popup
- Change }Hierarchies_Product filter to Product:Size and back to Product:Color
Notice how Product dimension hierarchy dynamically updated in global filter as well as in columns. Save the changes.
This configuration will work for global filters as well as for dimensions selected in rows or columns.
We will use the view configured in the previous exercise to practice how can we add nested UX placeholders.
In this example the selection will be even more dynamic, both filters are configurated the same way as in previous case, but the MDX changes were made for the Product dimension added in columns.
We need to do only one change in the view configuration:
- Open cube settings
- Select Product dimension added in columns
- Change the MDX query to:
{[Product].[$<<UX_Demo.}Hierarchies_Product.}Hierarchies_Product>>].[$<<UX_Demo.Product.$<<UX_Demo.}Hierarchies_Product.}Hierarchies_Product>>>>]}
- Close the cube settings popup
- Select element from Product global filter and notice how the column element dynamically updated
- Change }Hierarchies_Product filter to Product:Size and select different Product element
- Save the changes
Above example shows that by nesting two UX placeholder statements within each other users can not only define dynamic element selection based on filters, but also dimension hierarchy.
MDX details:
{[Product].
- product dimension
[$<<UX_Demo.}Hierarchies_Product.}Hierarchies_Product>>].
- dynamic hierarchy based on the global filter selection
[$<<UX_Demo.Product.$<<UX_Demo.}Hierarchies_Product.}Hierarchies_Product>>>>]}
- nested UX placeholder enabling to select element from Product dimension even when its hierarchy is changing dynamically
Advanced MDX techniques can be used everywhere in the Apliqo UX tool.
In the following example, we are going to check a few of the most common MDX queries that can be used to improve the functionality and the user experience of the Apliqo UX applications.
The next example will allow us to see only filtered Region elements on the columns based on their value in the selected cube.
To showcase this, we will create a new view, called "MDX - Filtering displayed elements". Select the "General Ledger_C3UX" as the source cube for this view.
Setup the dimensions as shown in the following picture:
- For Department dimension select Element List Type, Code and Description Attribute and Corporate Element
- For Region dimension select MDX List Type and Code and Description Attribute
Select Region dimension and in the MDX text box paste following query:
{
Filter(
{ TM1SubsetAll ( [Region] ) }
, [General Ledger_C3UX].(
[Version].[$<<UX_Demo.Version.Version>>],
[T Year-Month].[2012],
[Currency].[Local],
[Region].CurrentMember,
[Department].[Corporate],
[Account].[$<<UX_Demo.Account.Account>>],
[General Ledger Measure].[Amount]
)
> 1000000 )
}
- Filter all the elements from the Region dimension:
Filter( { TM1SubsetAll ( [Region] ) }
- Filter all elements based on their value in General Ledger_C3UX cube:
[General Ledger_C3UX].([Version].[$<<UX_Demo.Version.Version>>],[T Year-Month].[2012],[Currency].[Local],[Region].CurrentMember, [Department].[Corporate],[Account].[$<<UX_Demo.Account.Account>>],[General Ledger Measure].[Amount])
UX Placeholders ($<<Insatnce.Dimension.Hierarchy>>) were added to enable the dynamic change of selected elements.
- Filter values bigger that 1,000,000:
> 1000000 )
Close the cube setting and change the Version & Account global filter and observe how the displayed elements change based on their value:
The High-Charts API provides the flexibility to customize the charts in many ways.
Here are a few examples of how to customize the Apliqo UX charts in an advanced way (picture and code attached).
Here you can find more info about the High-Charts API.
0 Comments
Add your comment