COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: MikeG on 26 Feb 2015 02:08:43 AM

Title: TM1 equivalent for linkMember () function
Post by: MikeG on 26 Feb 2015 02:08:43 AM
Hi,

I had a problem raised on this site, where the answer was

"the Current Month member is in a different hierarchy from the real month members in your dimension. You can use the linkMember() function to grab the corresponding month member from your real hierarchy."

This seemed perfect until I found the linkMember () function (which seems really useful) is not supported with TM1 cubes.
Has anyone using TM1 found a credible alternative?

thanks
Mike
Title: Re: TM1 equivalent for linkMember () function
Post by: Nemo on 02 Oct 2015 02:44:23 AM
Hi,

If I understand correctly you are trying to get Current Month from time hierarchy because the linkMember() function is not supported with Cognos TM1 cubes. If this is the case, then you can get the Current Month out from time dimension with this kind of formula:

item(
filter (
members ([Cube].[DIM].[HIER]);
caption (firstChild([Cube].[DIM].[HIER].[Time All]->:[TM].[DIM].[HIER].[@MEMBER].[MEMBER]))
=
caption(currentMember ([Cube].[DIM].[HIER]))
);0)

Hope this will help you.

BR,

Nemo