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

SUM Distinct Measure

$
0
0

Hi,

I Have a fact table which looks like:

SK_YearMonthIDSK_CustomerIDAvailable
2012012235000
2012012235000
20120122310400
20120122310400
2012012233900
2012012231250
2012012232500
2012012237500
2012012237500
2012012233750
2012012233750

I want to sum up the distinct values? So rather than the sum being 60950 it needs to be 34300.

I was thinking on the lines:

SUM(
(
NONEMPTY([Customer].[Customer Number].[Customer Number].members,
[Year Month].[Year Month].[Year Month].Members)

,[Measures].[Available]
)

Any ideas?

Thanks


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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