You can calculate the productname as a measures, by using the
[Dimesion].Currentmember.Name syntax:
with member [Measures].[ProductName] as '[Product].currentmember.Name'
SELECT
{ [Measures].[Unit Sales],[Measures].[Store
ost],[Measures].[ProductName] } ON COLUMNS,
{ [Product].[All Products].[Drink].[Alcoholic Beverages].[Beer and
Wine],[Product].[All Products].[Drink].[Beverages].[Carbonated Beverages]}
ON ROWS
FROM [Sales]
This returns the numers for Unit Sales and Store Cost and then the name of
the product group.
You should be able to do something like
WIth member [Measures].[ProductName] as '[Product].Currentmember.Name'
SELECT
{ [Measures].[ProductName], [Measures].[Act], [Measures].[PL] } ON COLUMNS,
{ [Product].[BU Product Cat].[Product1], [Product].[BU Product
Cat].[Product2] } ON ROWS
FROM [Cube]
Kaisa M. Lindahl Lervik
[quoted text, click to view] "Carmen" <Carmen@discussions.microsoft.com> wrote in message
news:4F20E6B1-384C-47F9-B6B2-6B77151B8791@microsoft.com...
> I'm creating a report using an MDX query. The query looks similar to this
>
> SELECT
> { [Measures].[Act], [Measures].[PL] } ON COLUMNS,
> { [Product].[BU Product Cat].[Product1], [Product].[BU Product
> Cat].[Product2] } ON ROWS
> FROM [Cube]
>
> The result I get in RS is:
>
> [Measures].[Act] [Measures].[PL]
> 3432 857
> 9743 56
>
> But no column with the product name!
>
> When I ran it using the MDX sample application, it does return the product
> name. I believe it has something to do with the dimension settings.
> Depending
> on the dimension I use, it returns or not the column. Product1, Product2,
> etc
> are calculated members in the cube, by the way.
>
> I tried using dimension properties (MEMBER_CAPTION) but it seems it just
> ignores it (I tried cube name for instance -- just to check -- in the MDX
> Sample app, and still got the product name).
>
> Does anybody know how to return the product name? Any help is appreciated.
>
> Thanks,
>
> Carmen.