I think I am getting myself very confused and would like some clarification.
The crux of my question is, I think:
When defining a user hierarchy, do each level need to be globally unique?
Example - data
I created a data cube, pulling from SQL a week/hour hierarchy. There are thus 168 (7*24) rows, each of the form:
I then made a 2-level hierarchy out of it: day/hour.
So far so good.
Example - usage
Now I have another cube, with data related to this hierarchy. Output rows could be for instance:
day, hour, count
Monday, 12, 42
Wednesday, 20, 1
Day and hour are dimensions. Now if I want to promote them to my new fancy user-defined hierarchy, I just cannot in my current setup right? I can promote either hour, either day but they could not possibly cover 2 fields.
The only solution I came up with is basically to add an extra column to my initial hierarchy, which would then read:
Monday, 0, Monday-0
Wednesday, 12, Wednesday-12
Sunday, 23, Sunday-23
Basically creating a globally unique column over the whole hierarchy. I can then use this unique column in my user hierarchy, and add multiple levels where the caption would be ‘day’ for the 1st and ‘hour’ for the second.
Then, in my real ‘data’ data cube I do the same, basically replacing my 2 columns day/hour with one concatenated column. This one column can then be promoted to the user hierarchy.
Is this the right and only way to go?