Using PTS, with only Store Name on the row axis, the Product Count results
for the entire year of 1997 come out perfectly. They also come out correctly
when I restrict it to a single month of that year. But when I want to select
a range of dates, say Q1 to Q2, I only get zeros. This behaves slightly
differently when I filter based on Promotion instead of Time. There, if I
select a single promotion, the numbers are correct, but when I select any
two of the promotion items, I get the total, unfiltered Product Count. I
mention both of these behaviors because in my real-world situation, I will
need to filter the distinctly-counted items by time and another dimension,
such as Promotion.
I also tried creating a new product_id based measure with the Aggregation
Function set to Distinct Count, but as documented, you can't later include
that measure in aggregations. I thought that the approach I followed above
would allow me to later aggregate my distinctly-counted results. I apologize
if I am missing something very basic, but would appreciate any pointers that
any of you might have.
thanks,
matt
The only way to get what you want is to write the query yourself, and you can't
use DistinctCount(). Something like
NonEmptyCrossJoin (
{[Product Name].Members},
{[Time].[1997].[Q1], [Time].[1997].[Q2] },
{[Store].CurrentMember},
{[Customer].CurrentMember},
... // other dimensions' current members
,1 // return just the product dimension
).Count
HTH
MattH wrote:
--
George Spofford
Microsoft MVP
Chief Architect / OLAP Solution Provider
DSS Lab
http://www.dsslab.com
geo...@dsslab.com
ISVs & IT organizations: Find out how DSS Lab can speed your development!
thanks again,
matt
"George Spofford" <geo...@dsslab.com> wrote in message
news:3D6E2CC7...@dsslab.com...
HTH
thanks again!
"George Spofford" <geo...@dsslab.com> wrote in message
news:3D6E5039...@dsslab.com...