dbTalk Databases Forums  

Re: Problem with distict count

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Re: Problem with distict count in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vasu
 
Posts: n/a

Default Re: Problem with distict count - 07-08-2004 , 03:48 AM






Pie ChartsHi All

I have included new Measure called "Product Count"(Aggregation as Distinct Count) in the Warehouse Cube

If i try to run the below query it is giving error. Is there any problem with the MDX query or with the Analysis Server. I have seen net that the "Distinct Count"
won't work properly. Is there any way to come out of this problem.

with member [Product].[Test] as 'Aggregate ({[Product].[All Products].[Drink]})'
Select non empty ({[Store].[(All)].Members }) on rows, non empty {[Measures].[Product Count]} on columns From [Warehouse] where( [Product].[Test] )

Thanks,
Vasu


"vasu" <vasu (AT) stcroixsystems (DOT) com> wrote

Hi All

Iam facing problem with distinct count. If the i place the distinct count in the cubes iam getting the correct result. But when I try to get the result through the MDX query I am getting the error. Is there any way to solve this problem.

Thanks,
Vasu



Reply With Quote
  #2  
Old   
Sean Boon [MS]
 
Posts: n/a

Default Re: Problem with distict count - 07-29-2004 , 12:42 PM






Pie ChartsDistinct count is not supported with the aggregate function. If you only want one product member in the AGGREGATE function, you can simply remove the AGGREGATE function and just refer to the member. My guess is that you want to include multiple products though. If you need such functionality you'll need to consider adopting the approach outlined in

http://msdn.microsoft.com/library/de.../distinct2.asp



Sean Boon
Microsoft Office BI

**This posting is provided AS IS, with no warranties, and confers no
rights.**
"vasu" <vasu (AT) stcroixsystems (DOT) com> wrote

Hi All

I have included new Measure called "Product Count"(Aggregation as Distinct Count) in the Warehouse Cube

If i try to run the below query it is giving error. Is there any problem with the MDX query or with the Analysis Server. I have seen net that the "Distinct Count"
won't work properly. Is there any way to come out of this problem.

with member [Product].[Test] as 'Aggregate ({[Product].[All Products].[Drink]})'
Select non empty ({[Store].[(All)].Members }) on rows, non empty {[Measures].[Product Count]} on columns From [Warehouse] where( [Product].[Test] )

Thanks,
Vasu


"vasu" <vasu (AT) stcroixsystems (DOT) com> wrote

Hi All

Iam facing problem with distinct count. If the i place the distinct count in the cubes iam getting the correct result. But when I try to get the result through the MDX query I am getting the error. Is there any way to solve this problem.

Thanks,
Vasu



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.