<HTML>
<HEAD>
<TITLE>Re: [Mondrian] Labels above members</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Phantal and haaseg in IRC suggested to use degenerate dimension. Phantal explained further.<BR>
<BR>
&gt; what you're describing is a degenerate dimension<BR>
<BR>
&gt; You add field to your fact table for each 'type' of fact, Something, Whatever, Stuff, Blah, etc<BR>
<BR>
&gt; Then you add a dimension to wrap that field, and the actual measures (sales previous, sales, sales percent) are the same fields for every type of fact according to that dimension<BR>
<BR>
&gt; That way you don't have [Something Sales], and [Whatever Sales], you just have [Sales] <BR>
<BR>
Thanks, guys<BR>
<BR>
I learned that this mailing list is actually for the development of Mondrian, not usage of Mondrian. My apologies.<BR>
<BR>
<BR>
On 10/2/08 12:40 PM, &quot;Joshua Shaffner&quot; &lt;<a href="joshua.shaffner@goodwill.org">joshua.shaffner@goodwill.org</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I don&#8217;t want this:<BR>
<BR>
Something Sales | Something Sales &#8211; Previous Year | Something Sales &#8211; Percent | Whatever Sales | Whatever Sales &#8211; Previous | Whatever Sales &#8211; Percent<BR>
<BR>
I want this:<BR>
<BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Courier New"><SPAN STYLE='font-size:9pt'>| Something &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| Whatever &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<BR>
| Sales | Previous Year | Percent | Sales |Previous Year | Percent |<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
This is what seems to work as a way to group up members and label them up. Is there better way?<BR>
<BR>
with<BR>
&nbsp;&nbsp;&nbsp;member [Something] as &#8216;1&#8217;<BR>
&nbsp;&nbsp;&nbsp;member [Whatever] as &#8216;2&#8217;<BR>
<BR>
Select <BR>
Hierarchize(<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Union(<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Crossjoin(<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{[Something]}, <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{[Measures].[Something Sales], [Measures].[Something Sales &#8211; Previous], [Measures].[Something Sales - Percent]}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;), <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Crossjoin(<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{[Whatever]}, <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{[Measures].[Whatever Sales], [Measures].[Whatever Sales - Previous], [Measures].[Whatever Sales - Percent]}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;)<BR>
)<BR>
<BR>
&lt;truncated&gt;<BR>
<BR>
If there is no better way, then my next step is to figure out how to put in alias for the rest of the measures so instead of &#8220;Something Sales &#8211; Previous&#8221;, it displays &#8220;Previous Year&#8221;. Any pointer appreciated. Thanks!<BR>
<BR>
Cheers,<BR>
j<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
Mondrian mailing list<BR>
<a href="Mondrian@pentaho.org">Mondrian@pentaho.org</a><BR>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian">http://lists.pentaho.org/mailman/listinfo/mondrian</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>