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

How to sum row level multiplication values between two measure?

$
0
0

Hi All ,

In the CUBE i want to create a calculation , which in SQL Server is = sum(calldur*callind). The calldur is a measure which has numeric values. Callind has values of 1 and 0 (factless fact ). please see the below datasets.

calldur	callind		sum(caldur*callind)
54	1		54
0	0		0
25	1		25
58	0		0
31	1		31
300	0		0
297	0		0

but what the cube is doing is (call dur is selected as sum measure) and i selected (callind as max value)

adding all the calldur which is 765*1, where as the value should be sum of sum(calldur*callind) which is 110.please need help.

Thanks


SV


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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