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

SSAS Custom MDX for SubTotal and GrandTotal in Cube

$
0
0

Dear Experts

I have a cube with around 30 dimensions. For a measure when users browse any dimension or combination of dimension, in case of Grad Total or Subtotal they want to see actual result divide by 2

Dimension A

Dimension B

Value

A1

B1

10

A1

B2

20

A1

B3

30

Total A1

30

A2

B4

4

A2

B5

6

A2

B6

10

Total A2

10

Total

40


SubTotal (Total A1) 30 = (10 + 20 + 30 )/2 (Instead of 60)

SubTotal (Total A2) 10 = (4 + 6 + 10 )/2 (Instead of 20)

GrandTotal (Total )  40 = (10 + 20 + 30 + 4 + 6 + 10 )/2 (Instead of 80)

This need to be true for any combination of dimension they select

Thanks in advance!



Viewing all articles
Browse latest Browse all 14337

Trending Articles



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