You won't be able to do this using the distinct count aggregate. Instead
you can use the approach outlined in the following whitepaper. It's a
different topic, but the technique described should be applicable.
http://msdn.microsoft.com/library/de.../distinct2.asp
--
Sean
--
Sean Boon
SQL Server BI Product Unit
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"Montechristo" <anonymous (AT) discussions (DOT) microsoft.com> wrote
Quote:
Hello,
I'm having a problem implementing following requirement:
I ned to display the distinct count of customers that had sales in the
last two years per SalesEngineer.
(having salesengineer, customers and of course time as dimensions)
I tried different solutions based upon distinct count measures and
seperate cubes, used the distinct count MDX function with filter, but there
|
just seems to be no solution to show the customer count that had sales the
last two years (per salesengineer and even on day level going back two
years).
Quote:
I also tried building the count in the FACT-View but the Analysis Server
couldn't handle the Aggregations correctly.
By now I even doubt this is possible ... I'd like you to prove the
opposite please :-)
|