简体   繁体   中英

MDX/SSRS - how do you get the “ALL” label to display in a report

I have a very simple MDX example which will return my Freight measure by month and rolled up as ALL

  SELECT NON EMPTY
    { 
    [Measures].[Freight]
    } on columns
    ,
    NON EMPTY {
    [Due Date].[Calendar Month].members
    } on rows
    FROM [Adventure Works Cube]

表结果

Now using the same MDX in SSRS the ALL label does not appear. 在此处输入图片说明

Is it possible to have the ALL label appear in the report?

If you can display it in the report, is it possible to rename it to something like YTD?

You should be able to rename it in the MDX:

WITH 
  MEMBER [Due Date].[Calendar Month].[All].[YTD] AS 
    [Due Date].[Calendar Month].[All] 
SELECT 
  NON EMPTY 
    {[Measures].[Freight]} ON COLUMNS
 ,NON EMPTY 
    {
      [Due Date].[Calendar Month].[All].[YTD]
     ,[Due Date].[Calendar Month].[Calendar Month].MEMBERS
    } ON ROWS
FROM [Adventure Works Cube];

it's possible in SSRS to rename your fields in the dataset properties. You can even add calculated fields (with the add button in the top left corner). Hope this helps.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM