![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
WITH Member [Account Name].[No. Accounts] AS 'COUNT( crossjoin( nonemptycrossjoin([Account Name].[Account Name].MEMBERS, {[Measures].[Total Sold Products]},1),{[Measures].[Total Sales Amount]}), Excludeempty)' SELECT { [Account Name].[No. Accounts] } ON COLUMNS, {[Transactions].[Transaction Type].Members} ON ROWS FROM [Total Revenue] I get 0 results from this query. Can someone tell me why? |
#3
| |||
| |||
|
|
this formula could provide wrong results regarding some connectionstring parameters. try this first: 'COUNT( crossjoin( [Account Name].[Account Name].MEMBERS, {[Measures].[Total Sales Amount]}), Excludeempty)' (remove the nonemptycrossjoin) slower, but should always provide the right result "SAM" <SAM (AT) discussions (DOT) microsoft.com> wrote in message news:6BB0690B-0E32-44D4-9B8A-46D45BEA5C92 (AT) microsoft (DOT) com... WITH Member [Account Name].[No. Accounts] AS 'COUNT( crossjoin( nonemptycrossjoin([Account Name].[Account Name].MEMBERS, {[Measures].[Total Sold Products]},1),{[Measures].[Total Sales Amount]}), Excludeempty)' SELECT { [Account Name].[No. Accounts] } ON COLUMNS, {[Transactions].[Transaction Type].Members} ON ROWS FROM [Total Revenue] I get 0 results from this query. Can someone tell me why? |
#4
| |||
| |||
|
|
this formula could provide wrong results regarding some connectionstring parameters. try this first: 'COUNT( crossjoin( [Account Name].[Account Name].MEMBERS, {[Measures].[Total Sales Amount]}), Excludeempty)' (remove the nonemptycrossjoin) slower, but should always provide the right result "SAM" <SAM (AT) discussions (DOT) microsoft.com> wrote in message news:6BB0690B-0E32-44D4-9B8A-46D45BEA5C92 (AT) microsoft (DOT) com... WITH Member [Account Name].[No. Accounts] AS 'COUNT( crossjoin( nonemptycrossjoin([Account Name].[Account Name].MEMBERS, {[Measures].[Total Sold Products]},1),{[Measures].[Total Sales Amount]}), Excludeempty)' SELECT { [Account Name].[No. Accounts] } ON COLUMNS, {[Transactions].[Transaction Type].Members} ON ROWS FROM [Total Revenue] I get 0 results from this query. Can someone tell me why? |
#5
| |||
| |||
|
|
Jeje, Do you have any suggestions on how to improve the performance of this query? It runs the same in AS2005. "Jéjé" wrote: this formula could provide wrong results regarding some connectionstring parameters. try this first: 'COUNT( crossjoin( [Account Name].[Account Name].MEMBERS, {[Measures].[Total Sales Amount]}), Excludeempty)' (remove the nonemptycrossjoin) slower, but should always provide the right result "SAM" <SAM (AT) discussions (DOT) microsoft.com> wrote in message news:6BB0690B-0E32-44D4-9B8A-46D45BEA5C92 (AT) microsoft (DOT) com... WITH Member [Account Name].[No. Accounts] AS 'COUNT( crossjoin( nonemptycrossjoin([Account Name].[Account Name].MEMBERS, {[Measures].[Total Sold Products]},1),{[Measures].[Total Sales Amount]}), Excludeempty)' SELECT { [Account Name].[No. Accounts] } ON COLUMNS, {[Transactions].[Transaction Type].Members} ON ROWS FROM [Total Revenue] I get 0 results from this query. Can someone tell me why? |
#6
| |||
| |||
|
|
in AS2005 you no longer need this formula! the distinct count aggregation in AS2005 works fine in any combination (simple and multiple filters, visuatotal works fine too) so create a standard measure using the distinct count agggregation option and its all! "SAM" <SAM (AT) discussions (DOT) microsoft.com> wrote in message news:E092D1A0-3036-49A1-91D5-8EEBD85EB64B (AT) microsoft (DOT) com... Jeje, Do you have any suggestions on how to improve the performance of this query? It runs the same in AS2005. "Jéjé" wrote: this formula could provide wrong results regarding some connectionstring parameters. try this first: 'COUNT( crossjoin( [Account Name].[Account Name].MEMBERS, {[Measures].[Total Sales Amount]}), Excludeempty)' (remove the nonemptycrossjoin) slower, but should always provide the right result "SAM" <SAM (AT) discussions (DOT) microsoft.com> wrote in message news:6BB0690B-0E32-44D4-9B8A-46D45BEA5C92 (AT) microsoft (DOT) com... WITH Member [Account Name].[No. Accounts] AS 'COUNT( crossjoin( nonemptycrossjoin([Account Name].[Account Name].MEMBERS, {[Measures].[Total Sold Products]},1),{[Measures].[Total Sales Amount]}), Excludeempty)' SELECT { [Account Name].[No. Accounts] } ON COLUMNS, {[Transactions].[Transaction Type].Members} ON ROWS FROM [Total Revenue] I get 0 results from this query. Can someone tell me why? |
![]() |
| Thread Tools | |
| Display Modes | |
| |