Page 1 of 1

how to make a drillthough on a virtual hierarchy element?

Posted: Fri Nov 04, 2022 4:11 pm
by mrdauduong
Hi,

Iam trying to use new function Virtual Hierarchy on PAW

I have some virtual hierarchy with the element consolided diffirent.

I need to make a drillthrough but i realize that i can not drillthough on an element consolided of virtual hierarchy because this element consolided is not exist in architect ==> it return the default element "ND" :ugeek:

How i can make a drillthrough for 1 element consolided of virtual hierarchy?

Thanks a lot for help !
drill through.PNG
drill through.PNG (143.41 KiB) Viewed 2996 times

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Fri Nov 04, 2022 6:32 pm
by Wim Gielis
Are you sure that drillthroughs are supported in alternate hierarchies ?

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Fri Nov 04, 2022 6:54 pm
by ascheevel
It's been a while since I did this with alternate hierarchies, but you can parse the hierarchy selection, build the view manually in the prolog, and return that instead of the wizard-defined view. To be clear, the view you're returning is one without alternate hierarchies present. You'll need to parse the string parameter for whichever dim has the multi-hierarchy intersection in the drill-source. With two hierarchies from the same dim in the source view, the string parameter will look like this "^[base dim element selection]^[hierarchy name]:[hierarchy element selection]", three hierarchies would look like "^[base dim element selection]^[hierarchy1 name]:[hierarchy1 element selection]^[hierarchy2 name]:[hierarchy2 element selection]". If you only have 1 hierarchy for the dim in the view and it's an alternate hierarchy, the element name will be passed to the parameter like any normal drill view. You then would simply need to add all leaf children of that rollup in the alternate hierarchy to a subset or static list and attach that to the dynamic view you're creating in the prolog to be returned with ReturnViewHandle in the epilog.

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Sat Nov 05, 2022 6:17 am
by mrdauduong
Wim Gielis wrote: Fri Nov 04, 2022 6:32 pm Are you sure that drillthroughs are supported in alternate hierarchies ?
this is the first time i use a alternative hierarchies, so, i dont know :mrgreen:
ascheevel wrote: Fri Nov 04, 2022 6:54 pm It's been a while since I did this with alternate hierarchies, but you can parse the hierarchy selection, build the view manually in the prolog, and return that instead of the wizard-defined view. To be clear, the view you're returning is one without alternate hierarchies present. You'll need to parse the string parameter for whichever dim has the multi-hierarchy intersection in the drill-source. With two hierarchies from the same dim in the source view, the string parameter will look like this "^[base dim element selection]^[hierarchy name]:[hierarchy element selection]", three hierarchies would look like "^[base dim element selection]^[hierarchy1 name]:[hierarchy1 element selection]^[hierarchy2 name]:[hierarchy2 element selection]". If you only have 1 hierarchy for the dim in the view and it's an alternate hierarchy, the element name will be passed to the parameter like any normal drill view. You then would simply need to add all leaf children of that rollup in the alternate hierarchy to a subset or static list and attach that to the dynamic view you're creating in the prolog to be returned with ReturnViewHandle in the epilog.
Thanks for your reponse very clear Ascheevel, i will try it the next week and give you a feedback later !!! :D

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Mon Nov 07, 2022 9:00 am
by lotsaram
You can only access alternate hierarchies through MDX views not traditional views. At this time drill-through only supports traditional views as the target and not MDX views.
You can vote for the RFE to support MDX views in drill-through here https://ibm-data-and-ai.ideas.ibm.com/ideas/PAOC-I-393

Note: this refers to having alternate hierarchies as the TARGET of a drill-through. Having alöternate hierarchy elements as part of the slice from which a drill through is defined (i.e. the SOURCE of a drill-through) shouldn't be a problem. This is just a matter of defining a rule in the drill cube.

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Wed Nov 16, 2022 7:36 am
by mrdauduong
hi Ascheevel,

i dont really understand the idea. can you give a an exemple for this? :oops:

Thanks !
ascheevel wrote: Fri Nov 04, 2022 6:54 pm It's been a while since I did this with alternate hierarchies, but you can parse the hierarchy selection, build the view manually in the prolog, and return that instead of the wizard-defined view. To be clear, the view you're returning is one without alternate hierarchies present. You'll need to parse the string parameter for whichever dim has the multi-hierarchy intersection in the drill-source. With two hierarchies from the same dim in the source view, the string parameter will look like this "^[base dim element selection]^[hierarchy name]:[hierarchy element selection]", three hierarchies would look like "^[base dim element selection]^[hierarchy1 name]:[hierarchy1 element selection]^[hierarchy2 name]:[hierarchy2 element selection]". If you only have 1 hierarchy for the dim in the view and it's an alternate hierarchy, the element name will be passed to the parameter like any normal drill view. You then would simply need to add all leaf children of that rollup in the alternate hierarchy to a subset or static list and attach that to the dynamic view you're creating in the prolog to be returned with ReturnViewHandle in the epilog.

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Wed Nov 16, 2022 7:58 pm
by ascheevel
What element in the base hierarchy do you want the consolidation from the alternate hierarchy to map to? If the alternate hierarchy consolidation doesn't exist in the base dim, you'll need to specify something, otherwise it will use a default which you're seeing with the "ND" selection.

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Thu Nov 17, 2022 10:01 am
by mrdauduong
ascheevel wrote: Wed Nov 16, 2022 7:58 pm What element in the base hierarchy do you want the consolidation from the alternate hierarchy to map to? If the alternate hierarchy consolidation doesn't exist in the base dim, you'll need to specify something, otherwise it will use a default which you're seeing with the "ND" selection.
hi,
i can not map with an element in the base hierarchy because the alternate hierarchy consolidation doesn't exist in the base dim, what i need to do to "specify something"?
thanks your reponse!

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Thu Nov 17, 2022 3:14 pm
by ascheevel
Exactly, it's well understood already that the consolidation in the alternate hierarchy doesn't exist in the base hierarchy, so the question is, "what do you want to do for the base hierarchy/dim?". Your drill-through view is going to need some element/subset selection for the base hierarchy, are you going to map to different selections based on what's selected in the alternate hierarchy or will you simply want to map to a standard default regardless of the drill source selection?

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Thu Nov 17, 2022 3:48 pm
by mrdauduong
ascheevel wrote: Thu Nov 17, 2022 3:14 pm Exactly, it's well understood already that the consolidation in the alternate hierarchy doesn't exist in the base hierarchy, so the question is, "what do you want to do for the base hierarchy/dim?". Your drill-through view is going to need some element/subset selection for the base hierarchy, are you going to map to different selections based on what's selected in the alternate hierarchy or will you simply want to map to a standard default regardless of the drill source selection?
I can not map to different selectios based on what's selected in the alternate hierarchy because all the alternate hierarchy is very diffrent than the base hierarchy.
I will wait for the solution in the next update. maybe TM1 will support drill through for alternaty hierarchy in the future.
For now, i will try to do another way.
Thanks for your reponse!

Re: how to make a drillthough on a virtual hierarchy element?

Posted: Thu Nov 17, 2022 10:06 pm
by ascheevel
mrdauduong wrote: Thu Nov 17, 2022 3:48 pm I will wait for the solution in the next update
I think this is the best course of action for you at this time, hopefully the wait isn't too long. Cheers.