Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to go from rows to a hierarchy in icCube

Tags:

iccube

mdx

I want to create a one-column hierarchy from multiple columns using mdx. I got this result:

iccube pivot

from the Sales cube with this mdx:

SELECT
{ {[Measures].[Amount]} } ON COLUMNS,
{ [Customers].[Geography].firstNotAllLevel().allmembers }*{ [Product].[Product].[Category].allmembers }*{ [Time].[Quarter].firstNotAllLevel().allmembers } ON ROWS
 FROM [Sales]

I want the first three columns to form a hierarchy that looks like this:

obscure paint construction

Is this possible in icCube using mdx? If it is, can you show me how?

like image 976
Tom van den Berg Avatar asked Jan 02 '26 07:01

Tom van den Berg


1 Answers

Using standard MDX you can't solve the problem as you can not navigate across hierarchies on a single MDX statement.

What we're looking for is to define our own hierarchy for navigation. Using icCube you've two different ways :

1) You can use Categories to define at will a new hierarchy. Check documentation (categories-howto, categories-doc and categories-example ). Bear in mind that for the new hierarchy the parent / child relation is just visual and not data related (e.g. parent is the sum of his children)

2) You can define your navigation logic using the reporting tool. But this has his limitations in the current version 5.1 (most probably we will fix for 5.1.1)

like image 86
ic3 Avatar answered Jan 06 '26 10:01

ic3



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!