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

Filter calculated members

$
0
0

I'm trying to create a calculated member that is using 2 dimension members only.

This MDX produces the results I want the calculated member to have:

select  {[measures].[Amount],[measures].[Asset pool Yield]} on columns
from [Financials]
where {[Account].[Account type].&[D], [Account].[Account type].&[T]}

I thought this would work for the calculated member:

With member [Measures].[Test] AS
AGGREGATE({[Account].[Account type].&[D], [Account].[Account type].&[T]}) * {[Measures].[Amount]}

I also tried this:

Filter( CROSSJOIN ([Account].[Account type].&[D], [Account].[Account type].&[T]),
 [Measures].[Amount])

But both generate #ERROR for Measure Test.  What's the best way to do this ?


J. Way


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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