<div dir="ltr"><div>Dear All:</div><div>  I have a question on &quot;How to dynamically group multiple range on dimension&quot;.</div><div><br></div><div> I have a dimension called age_dim and a measure called sum_count which is sum of all count.  I have following two MDX query and get same result listing all the sum_count for different ages.</div><div><br></div><div>SELECT</div><div>NON EMPTY {[Measures].[sum_count]} ON COLUMNS,</div><div>NON EMPTY {[age_dim].[count_hiera].[age].Members } ON ROWS</div><div>FROM [my_cube]</div><div><br></div><div><br></div><div>SELECT</div><div>NON EMPTY {[Measures].[sum_count]} ON COLUMNS,</div><div>NON EMPTY {</div><div>[age_dim].[count_hiera].[age].&amp;[20] : [age_dim].[count_hiera].[age].&amp;[29],</div><div>[age_dim].[count_hiera].[age].&amp;[30] : [age_dim].[count_hiera].[age].&amp;[39],</div><div>[age_dim].[count_hiera].[age].&amp;[40] : [age_dim].[count_hiera].[age].&amp;[49]</div><div> } ON ROWS</div><div>FROM [my_cube]</div><div><br></div><div>age   sum_count</div><div>21     40</div><div>25     15</div><div>27     25</div><div>35     30</div><div>38     20</div><div>45     20</div><div>47     10</div><div><br></div><div><br></div><div>----------------</div><div>However I like to get table below which the sum_count can be grouped by range of age dimension. Any Help would be great!</div><div><br></div><div>------------------</div><div>age   sum_count</div><div>20-29     80</div><div>30-39     50</div><div>40-49     30</div><div><br></div></div>