Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

count distinct set of attributes over the month ans product

$
0
0

hi,

i have one dimension DtimTime, DimProduct and DimCustomer and one Fact FactTxn

now in DimCustomer the set on CustomerName, CardNumber and CardExpiryDate is unique. and this set of key is Key column in my DimCustomer Table and referring as foreign key in my FactTable(FactTxnID, ProductKey, TimeKey, CustomerName, CardNumber, CardExpiryDate, SalesAmt, TaxAmt)

now in my MDX i want to find

product based

Distinct customer ( set of Customer Name, Card Number and Card expiry Date) count

over the Year

example: (result should look like as)

              2010   2011   2012  ....    .. . . . . .etc
Produc1   24      15       34
Product2  35      36       37
.
.
.
.etc


many many thanks in advance for all your assistance



Regards, Shanu






Viewing all articles
Browse latest Browse all 2472

Trending Articles



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