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

MDX Getting MAX item after the filter

$
0
0

with 
Member [test1] As 


(Filter
    (
      Descendants
      (
        ParallelPeriod
        (
          [Time].[Standard].[Quarter]
         ,1
         ,[Current Quarter].Item(0)
        )
       ,[Time].[Standard].[Day]
      )
     ,
      [Measures].[BusinessDaysQTD] >= [Measures].[Business Days QTD Daily]
    ).item(0).UniqueName) 

I have This calculated member.

Here i'm using item(0).UniqueName to recieve the first member of the item.

How i can get the last member instead of first?

How can i use order by Desc here?


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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