Children Function in MDX



This acts similar to AllMembers function when you use this with attributes. PFB sample query of using Children function with attribute.

select [Measures].[Sales Amount] on 0,
[Dim Product].[Products].children on 1
from [Adventure Works]


select [Measures].[Sales Amount] on 0,
[Dim Product].[Products].AllMembers on 1
from [Adventure Works]

Both the above queries gives the same output. The power of CHILDREN function will come into picture when you are using this function with Hierarchies. Children function returns the next level members of a specified member or simply to say it returns Children of a member. 



If you have a hierarchy defined then this Children function returns the naturally ordered set which is the children of the member specified. If the specified member has no children, this function returns an empty set.

To demonstrate Children function I created a Dimension named “Dim Time” and defined a Hierarchy with the following levels.

  • Calendar Year
  • Calendar Quarter
  • English Month Name

Now, in the below query I passed 2002 from “Calendar year” level as member_expression to the children function and the query returned the children of 2002 member i.e Quarters 1,2,3,and 4 as shown in below Screenshot.

select [Measures].[Sales Amount] on 0,
[Dim Time].[Hierarchy].[Calendar Year].&[2002].Children on 1
from [Adventure Works]

Now in the below Example I am passing Member from “English Month Name” level of the hierarchy and as this is the last level of the hierarchy, there won’t be any children and hence it returns empty result set as shown in the below screenshot.

select [Measures].[Sales Amount] on 0,
[Dim Time].[Hierarchy].[Calendar Year].&[2002].&[4].&[December].Children on 1
from [Adventure Works]

Note: It is not that the Result set will be empty when you take a member from LAST level of the hierarchy. When you pass ANY MEMBER from ANY LEVEL which doesn’t have children then the result set will be empty. This looks very simple one but it is very useful and powerful when working on MDX Calculations.

That’s it .. Happy Coding !!


Roopesh Babu V



  1. slots online free
    [url=””]online slots that pay real money[/url]
    heart of vegas real casino slots free on facebook

  2. [url=]best erectile dysfunction pills[/url] mexican pharmacy without prescription

  3. writing my dissertation
    [url=””]dissertation acknowledgement sample[/url]
    books thesis dissertation help

  4. [url=]stromectol 3 mg tablets price[/url] stromectol 12 mg tablets

  5. will olumiant work on me [url=]olumiant price usa [/url] eli lilly and incyte drug baricitinib case analysis baricitinib 4 mg in india

  6. premium dissertation writing service
    [url=””]dissertation help uk[/url]
    uf thesis and dissertation

  7. [url=]buy prescription drugs online legally[/url] meds online without doctor prescription

  8. [url=]ivermectin tablets for humans[/url] ivermectin for guinea pig lice

  9. [url=]pain meds online without doctor prescription[/url] medications list

  10. [url=]tadalafil without a doctor’s prescription[/url] buy anti biotics without prescription

  11. casino no deposit bonus win real money usa
    [url=””]biggest online casino bonus[/url]
    mobile casino games for real money

  12. [url=]ed meds online without prescription or membership[/url] buy cheap prescription drugs online

  13. And because Sertraline is a pill taken ahead of time, whether on a daily or an as-needed basis, you won t have to halt the action to apply a topical product buy cialis online usa , nurses, registered dietitians, lifestyle coaches, psychologists and support staff to deliver the most advanced programs

  14. A 2014 study of citations of open access undergraduate theses across 49 repositories found that 4 of undergraduate theses were cited a total of 1,390 times best generic cialis Lilly ICOS, maker of Cialis tadalafil , has initiated the The CialisPromise

  15. The only difference here is the fact that Soft Tabs are chewable, and are available in a wide variety of flavors such as Banana, Strawberry, Lemon or Mint , so the process of Cialis Soft Tabs administration is a bit more pleasant than the process of administration of classical Cialis pills cialis 20mg for sale Instead, what you just read is a mish mash of the messages I ve received over the last 7 years from readers who ve hated their genitals for one reason or another

  16. land slot auto เล่นเกมสล็อตได้ทุกค่าย ครบทุกเกมไปกับ ทุกค่ายเกมสุดสนุก แบบแปลกใหม่ ไม่มีซ้ำใครกันแน่ เล่นได้ไม่น่าเบื่อ PG ไม่เหมือนกันด้วยการเป็นบริการเกมสล็อตออนไลน์

  17. [url=]buy doxycycline online without prescription[/url] where to get doxycycline

  18. Cohort I N 264 consisted of mainly postmenopausal women with stage II breast cancer treated with tamoxifen for 2 years irrespective of ER status cialis 20mg for sale In its activated GTP bound form, Ras recruits and activates RAF kinases A RAF, B RAF, and C RAF RAF 1

  19. A new baseball game, for example, requires correct recording with the playing baseball average of gamers and the pitcher s earned run normal, while a sports game requires recording the passing yards and touchdown completions of quarterbacks ivermectin rosacea Nakashima, O

  20. de la salud, como medicos y enfermeras, son duenos y administran el centro de vida asistida. Ademas, las enzimas de origen animal suelen contener toxinas como pesticidas y residuos de hormonas sinteticas. Alprostadil Study Group. If you need a quick response, Kamagra Jelly or a soft tablet may be an alternative. But for Thomas of Hookton, the hero of Harlequin and Vagabond, there is no end to the fighting. Cenforce 100 50 120 150 Use To Treat Erectile Dysfunction. Il marciapiede che aveva notato [url=]M. Zautcke, J.[/url]

  21. If an abscess is suspected, clindamycin or metronidazole is often included to improve empiric coverage against the presumed presence of anaerobic bacteria lasix potassium The human perturbed state atlas validated aspects of the mouse perturbed state atlas, including LRRC15 myofibroblasts and ADAMDEC1 fibroblasts, but also suggested that indication specific stimuli or signal duration may drive additional myofibroblast populations in humans that were not seen in our mouse atlas

  22. [url=]pills like viagra over the counter[/url] best sleep aid over the counter


Please enter your comment!
Please enter your name here

11 − 3 =