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

MDX Problem - Except Function in calculated member

$
0
0

Hello everybody,

I have the following code in MDX to create a calculated member. I tried it with and without .MEMBERS and I got the same result like you see under the code statement.

AGGREGATE(

EXCEPT([Material].[Bohrerart Id].[Bohrerart Id].MEMBERS
      ,[Material].[Bohrerart Id].&[YPAB]),
([Measures].[Nettoerloes CO])) +
AGGREGATE(
EXCEPT([Material].[Bohrerart Id].[Bohrerart Id].MEMBERS
      ,[Material].[Bohrerart Id].&[YPAB]),
([Measures].[Erloes Projektpos])) -
AGGREGATE(
EXCEPT([Material].[Bohrerart Id].[Bohrerart Id].MEMBERS
      ,[Material].[Bohrerart Id].&[YPAB]),
([Measures].[PVF PJ])) -
AGGREGATE(
EXCEPT([Material].[Bohrerart Id].[Bohrerart Id].MEMBERS
      ,[Material].[Bohrerart Id].&[YPAB]),
([Measures].[Skonto PJ])) -
AGGREGATE(
EXCEPT([Material].[Bohrerart Id].[Bohrerart Id].MEMBERS
      ,[Material].[Bohrerart Id].&[YPAB]),
([Measures].[Bonus PJ]))


Now I have the problem, that if I want to analyse each member of the "Bohrerart" dimension, all members have the total value.

It looks like this:

Element Measure 1 / Measure 2 (with except) /Measure 3 (what i expect to get)

YPAB  20 / 80 / -

A 20 /80 / 20

B 20 /80 / 20

C 20 /80 / 20

D 20 /80 / 20


What am I doing wrong? Could someone help me to understand and solve this problem?

Kind Regards

MuenchM









Viewing all articles
Browse latest Browse all 14337

Trending Articles



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