![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| With Member [Measures].[GenderName] as |
#3
| |||
| |||
|
|
One standard technique with Reporting Services, which might work for you, is to add a calaculated measure for the name: With Member [Measures].[GenderName] as iif([Patient Stay].[Gender].CurrentMember is [Patient Stay].[Gender].[All], "Total", [Patient Stay].[Gender].CurrentMember.Name) SELECT NON EMPTY {[Measures].[GenderName], [Measures].[Patient Stay Count], [Measures].[Length of Stay], [Measures].[Patient Count] } ON COLUMNS, NON EMPTY {[Patient Stay].[Gender].[Gender].ALLMEMBERS, [Patient Stay].[Gender].[All} DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Clinical Performance] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
In the report data set, are you using the OLE DB for OLAP Provider (which should work)? I think that there may be problems with returning the parent row, when using the Analysis Services Provider. Also, in the report design, only the GenderName field should be used, not Gender. - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#6
| |||
| |||
|
|
Where can I see where which OLAP Provider I'm using? I only used the GenderName. My problem is that my report is a little more complex - my matrix looks like this: Q1 Q2 total TownA Patients Patient Stay Patient Stays is simply summed up but patients is a "distinct" sum and the total can't be calculated as a sum because I also have to keep in mind that I need a distinct sum. By the way when I use : With Member [Measures].[GenderName] as iif([Patient Stay].[Gender].CurrentMember is [Patient Stay].[Gender].[All], "Total", [Patient Stay].[Gender].CurrentMember.Name) SELECT NON EMPTY {[Measures].[GenderName], [Measures].[Patient Stay Count], [Measures].[Length of Stay], [Measures].[Patient Count] } ON COLUMNS, NON EMPTY {[Patient Stay].[Gender].[Gender].ALLMEMBERS, [Patient Stay].[Gender].[All} ---> and delete [Patient Stay].[Gender].[Gender].ALLMEMBERS - gender is not displayed any more and only one row with total in it is displayed. Why? DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Clinical Performance] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS Deepak Puri schrieb: In the report data set, are you using the OLE DB for OLAP Provider (which should work)? I think that there may be problems with returning the parent row, when using the Analysis Services Provider. Also, in the report design, only the GenderName field should be used, not Gender. - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Can you try Data Source type of "OLE DB", with OLE DB Provider selected as "Microsoft OLE DB Provider for Analysis Services 9", and see if the "Total" row is visible? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |