Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FirstChild ...

Status
Not open for further replies.

netangel

Programmer
Feb 7, 2002
124
PT
I'm using this formula as my 'costum rollup formula':

Code:
Iif([Measures].CurrentMember.Name = "Profict", 
   [order].CurrentMember.FirstChild
   RollupChildren([order].CurrentMember, "+")
)

I want every order to assume the value of the first child that belongs to to selected set. The problem is that this formula returns the very first child, even if it does't belong to the current set.

I've tryed comething like this:
Code:
TopCount([order].CurrentMember.Children, 1, [Line_no])

and I've tryed usind the Descendants function. Nothing worked.

Is there any way to find the 1st of the selected children?
NetAngel
 
Can you send the full MDX query that you are using?
Good luck
Issahar
senior software engineer

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top