Once we have returned cube members into a grid report we often need to exclude or change the order of the result set to provide more meaningful information. MDX (Multidimensional Expressions) language includes some very useful operators to provide filtering (FILTER), sorting (ORDER) and ranking (TOPCOUNT/BOTTOMCOUNT) of dimension members. These can be quite overwhelming even for power users of XLCubed. So, in V6, we have introduced a new feature “Advanced Member Selections” to provide easy access to this powerful part of Microsoft Analysis Services.
Using this new functionality we can nest and combine these operations to answer complex business questions (for simpler operations you can right-click on a member in the grid and use the “Apply” menu to perform simple ranking, filters and sorting).
So let’s go through a simple filtering example. Say, for example, that we want to find the products at Product Key level that sold more than 25 units in 2003, Quarter 1 and show the sales figures for those subcategories during 2003 and its quarters.
So we can see the results, filtering by 2003 Q1, but displaying the values for All Time (or any other period we wish to use). We could have also used the Range selector:
to drive the period selecting from an Excel Range and our grid would automatically refresh whenever the driving value changes.
Now let’s add a ranking to find the bottom 8 selling products at the Product Key level that have sold more than 25 units inQ1:
We now have the filter, following by the ranking:
Run the Grid: only the lowest 8 members are returned
Now let’s sort the report on a different dimension – for example, descending order of the Q1 sales.
It’s also possible to join different results together: combining both sets (UNION), excluding members (EXCEPT) and returning common members (INTERSECT).
So we could also add the top 10 products along side the bottom 8 products to the grid. Begin by adding another member selection using the “Add Member List” tool-bar button:
As before, we select the list of members to rank (in this case the Product Key level) and then select the operation we want to perform, a Top 10:
There are various options to decide how to combine the lists, we’ll stick with Add:
And we get both results combined:
So the “Advanced Member Selections” feature provides lots of the power of Analysis Services in a simplified way – to try this feature for yourself you can begin by downloading XLCubed.
Discover how Fluence can help your organization plan better and close faster with more confidence.