dbTalk Databases Forums  

Trying to not return Total rows from a crossjoin

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


Discuss Trying to not return Total rows from a crossjoin in the microsoft.public.sqlserver.olap forum.



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

Default Trying to not return Total rows from a crossjoin - 11-07-2005 , 05:45 PM






Thank you in advance
Here is my mmDX.

SELECT {[Measures].[Actual Revenue], [Measures].[Revenue]} ON COLUMNS ,
NON EMPTY CROSSJOIN( [DistrictIsManaged].members,[Territory].members) ON
ROWS
FROM [Sales vs RepBudget]
WHERE ([Time].[All Time].[2005],[RegionIsManaged].[Region Id].[East])

The problem is that it always return n-rows , for total depending on the
members being return. I need to stop it from returning those total. I try to
disable the ALL, but it really makes your queries.
Thank you
Tomas


Reply With Quote
  #2  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: Trying to not return Total rows from a crossjoin - 11-07-2005 , 11:29 PM






Specify which level you need -- instead of [Hierarchy].Members you should
ask for [Level].Members in the crossjoin.

SELECT {[Measures].[Actual Revenue], [Measures].[Revenue]} ON COLUMNS ,
NON EMPTY CROSSJOIN(
[DistrictIsManaged].[DistrictIsManaged].members, -- Note the change
[Territory].[Territory].members --
Note the change
) ON
ROWS
FROM [Sales vs RepBudget]
WHERE ([Time].[All Time].[2005],[RegionIsManaged].[Region Id].[East])

Thanks,
Akshai
--
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Tomas" <Tomas (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thank you in advance
Here is my mmDX.

SELECT {[Measures].[Actual Revenue], [Measures].[Revenue]} ON COLUMNS ,
NON EMPTY CROSSJOIN( [DistrictIsManaged].members,[Territory].members) ON
ROWS
FROM [Sales vs RepBudget]
WHERE ([Time].[All Time].[2005],[RegionIsManaged].[Region Id].[East])

The problem is that it always return n-rows , for total depending on the
members being return. I need to stop it from returning those total. I try
to
disable the ALL, but it really makes your queries.
Thank you
Tomas




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.