Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Row Count Function MDX

$
0
0

Hi,

I'm need a row count function to use in my mdx code.

i have this 

 WITH

       MEMBER [Measures].[Row number] AS
                    iif( IsError(Axis(1).Count), null,
                           Rank (
                                  StrToTuple ("(" +
                                        Generate ( 
                                               Head ( Axis(0),
                                                      Axis(1).Item(0).Count
                                               ) AS RN,"Axis(1).Item(0).Item(" +
                                               CStr(RN.CurrentOrdinal - 1) +").Hierarchy.CurrentMember",","
                                        ) + ")"
                                  )                                              
                                  , Axis(1)
                           )
                    )

But when the row number is biggest than 500 it's dont work, staying in a loop.

some one know another form to do that?

thanks for the moment,

Bruno


Acesse www.cuboelevadoaocubo.com


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>