<br>Here&#39;s a query I just ran in Analysis Services.&nbsp; If a member is defined on dimension it has 0 children, and it&#39;s parent is *not* All.&nbsp; It&#39;s level ordinal is 0.&nbsp; <br><br>The other way to define a calculated member is to attach it to another member.&nbsp; The second set of members in my query has a calculated member attached to &quot;All Gender&quot;.&nbsp; In that case it&#39;s parent *is* all and it&#39;s ordinal is 1.&nbsp; It still has 0 children, but now has 2 siblings.<br>
<br><br>with<br>&nbsp;member gender.calculated as &#39;gender.m&#39;<br>member&nbsp; gender.[All Gender].calculated as &#39;gender.m&#39;<br>member measures.countChildren as &#39;gender.calculated.children.Count&#39;<br>member measures.parentIsAll as &#39;gender.calculated.Parent IS gender.[All Gender]&#39;<br>
member measures.levelOrdinal as &#39;gender.calculated.Level.Ordinal&#39;<br><br>member measures.definedOnAllLevelOrdinal as &#39;gender.[all gender].calculated.Level.Ordinal&#39;<br>member measures.definedOnAllLevelParentIsAll as &#39;gender.[all gender].calculated.Parent IS gender.[All Gender]&#39;<br>
member measures.definedOnAllLevelChildren as &#39;gender.[all gender].calculated.Children.Count&#39;<br>member measures.definedOnAllLevelSiblings as &#39;gender.[all gender].calculated.Siblings.Count&#39;<br><br>select { measures.[countChildren],&nbsp;&nbsp; -- returns 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; measures.parentIsAll,&nbsp;&nbsp; -- returns 0<br>&nbsp;&nbsp;&nbsp;&nbsp; measures.levelOrdinal,&nbsp; -- returns 0<br>&nbsp; measures.definedOnAllLevelOrdinal,&nbsp; -- returns 1<br>&nbsp; measures.definedOnAllLevelParentIsAll,&nbsp;&nbsp; -- returns 1<br>measures.definedOnAllLevelChildren,&nbsp; -- returns 0<br>
&nbsp;measures.definedOnAllLevelSiblings&nbsp;&nbsp; -- returns 2<br>&nbsp;} on 0 from sales<br><br><br><div class="gmail_quote">On Feb 17, 2008 11:01 PM, John V. Sichi &lt;<a href="mailto:jsichi@gmail.com">jsichi@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Will Gorman wrote:<br>&gt; A quick fix to this problem was to not set the all flag for calculated<br>
&gt; members. &nbsp;My question is should these calculated members be created at<br>&gt; the [(All)] level in the first place? &nbsp;Also, should calculated members<br>&gt; have the all member if it exists as a parent?<br><br></div>
Seems like they should be children of the all member when it exists and<br>when no other parent is specified (if specifying a parent were working).<br><br>Maybe there&#39;s a way to test what MSAS does in that case?<br><font color="#888888"><br>
JVS<br></font><div><div></div><div class="Wj3C7c">_______________________________________________<br>Mondrian mailing list<br><a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br><a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
</div></div></blockquote></div><br>