Linkmember not working in Crossjoin set -
06-08-2005
, 03:02 PM
I have two time dimensions: Time_Incurred_YrMth and Time_Paid_YrMth.
Structures and content are identical.
When I test the linkmember function on its own, everything is fine.
LinkMember([TIME_INCURRED_YrMth].currentmember,[TIME_PAID_YrMth]).
But, when I use this in the following expression, the syntax is ok but the
grid displays #ERR:
SUM(CROSSJOIN(Ytd([TIME_INCURRED_YrMth]),
{[TIME_PAID_YrMth].CURRENTMEMBER.LEVEL.MEMBERS.ITEM(0):
LinkMember([TIME_INCURRED_YrMth].currentmember,[TIME_PAID_YrMth])
..nextmember}),(CalculationDimension.&[1]))
Essentially, the above expression looks at when something was billed (e.g.,
Time_Incurred) and when something was paid (e.g., Time_Paid). I pick up all
services billed for a given time_incurred (YTD), and crossjoin against when
the services were paid within one additional month beyond time_incurred.
So, if services were billed YTD(March 2005), then the LinkMember() should
generate a Time_Paid member that is April 2004.
Anyone know why I get a #ERR?
Thanks,
Pete
--
Message posted via http://www.sqlmonster.com |