![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| WITH MEMBER [Measures].[X] AS 'COUNT(FILTER(DESCENDANTS([Customer]. |
|
WITH MEMBER [Measures].[X] AS COUNT(FILTER(DESCENDANTS([Customer].CURRENTMEMBER,[Customer].[Customer]),[M*easures].[Reseller Order Quantity]>0)) SELECT [Measures].[X] ON COLUMNS, DESCENDANTS([Customer].[All Customers], [Customer].[Customer Geography].[Full Name], SELF_AND_BEFORE) ON ROWS FROM [Adventure Works] WHERE [Customer].[City].&[Atlanta]&[GA] |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I am confused why [Measures].[X] is showing 1 for all the rows. I expected X to be the "count of unique customers that have placed an internet order". X=1 for the Customer Name level makes sense, but how do I get the aggregated count up the hierarchy? |
|
I see where you are going with this, and I have tried with the following: WITH MEMBER [Measures].[X] AS COUNT(FILTER(DESCENDANTS([Customer].[Customer].CURRENTMEMBER, [Customer].[Customer]), [Measures].[Internet Order Quantity]>0)) SELECT {[Measures].[X], Measures.[Internet Order Quantity]} ON COLUMNS, DESCENDANTS([Customer].[All Customers], 0, SELF_AND_AFTER) ON ROWS FROM [Adventure Works] WHERE [Customer].[City].&[Camarillo]&[CA] X Internet Order Count All Customers 1 27,659 United States 1 9,567 California 1 5,466 Camarillo 1 2 93010 1 2 Drew Raji 1 1 Kellie J. Gomez 1 1 I figured that means Drew Raji and Kellie Gomez are the only 2 customers from Camarillo that have placed an internet order before (one order each in fact). I am confused why [Measures].[X] is showing 1 for all the rows. I expected X to be the "count of unique customers that have placed an internet order". X=1 for the Customer Name level makes sense, but how do I get the aggregated count up the hierarchy? That means 93010 (the Postal Code) and Camarillo (the City) should be showing 2 for X as there are 2 such internet customers in that city, and even more for the State and Country level. |
#5
| |||
| |||
|
|
I see where you are going with this, and I have tried with the following: WITH MEMBER [Measures].[X] AS COUNT(FILTER(DESCENDANTS([Customer].[Customer].CURRENTMEMBER, [Customer].[Customer]), [Measures].[Internet Order Quantity]>0)) SELECT {[Measures].[X], Measures.[Internet Order Quantity]} ON COLUMNS, DESCENDANTS([Customer].[All Customers], 0, SELF_AND_AFTER) ON ROWS FROM [Adventure Works] WHERE [Customer].[City].&[Camarillo]&[CA] X Internet Order Count All Customers 1 27,659 United States 1 9,567 California 1 5,466 Camarillo 1 2 93010 1 2 Drew Raji 1 1 Kellie J. Gomez 1 1 I figured that means Drew Raji and Kellie Gomez are the only 2 customers from Camarillo that have placed an internet order before (one order each in fact). I am confused why [Measures].[X] is showing 1 for all the rows. I expected X to be the "count of unique customers that have placed an internet order". X=1 for the Customer Name level makes sense, but how do I get the aggregated count up the hierarchy? That means 93010 (the Postal Code) and Camarillo (the City) should be showing 2 for X as there are 2 such internet customers in that city, and even more for the State and Country level. |
![]() |
| Thread Tools | |
| Display Modes | |
| |