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

PrevMember works fine on a calc membe, until filtering member off another dimension.

$
0
0

This calc works.

SUM(
EXCEPT (
                     [d Soda].[Soda Sk].[Soda Sk] ,
               { [d Soda].[Soda Sk].&[-1] }
)
,[Measures].[Soda Transaction Count]
)

this calc also works showing prior month.

(
 [Measures].[Soda Transaction Count]
, [d Date].[date].PREVMEMBER
)

How to get Date's PrevMember works and filtering out one dimension?

It fails when I want to filter out the Soda.&[0] on the PrevMember.

AGGREGATE (
EXCEPT (
                     [d Soda].[Soda Sk].[Soda Sk] ,
               { [d Soda].[Soda Sk].&[-1] }
)
, [Measures].[Soda Transaction Count]
, [d Date].[date].PREVMEMBER
)


-- IBM has jobs for USA employee to work oversea (India) and get their wages.


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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