I am trying to create a dashboard in PowerBI that refreshes with the information in a Pivot Table by connecting directly to a SSAS Cube. I retrieved the MDX query from the Excel file and the query runs perfectly in SSMS. However, when I import the query to PowerBI, the numerical data loads in, but the categorization data (text) loads in as [Plant].[Plant].[All] rather than the actual Plant name. Any insight into why this is happening?
SELECT
CrossJoin(
{[Measures].[Closing Balance Amount],
[Measures].[Closing Balance Quantity]},
Hierarchize(
{DrilldownLevel(
{[Product SKU - Material].[Material Type].[All]}
) }
)
) DIMENSION PROPERTIES PARENT_UNIQUE_NAME,
HIERARCHY_UNIQUE_NAME ON COLUMNS,
NON EMPTY CrossJoin(
CrossJoin(
CrossJoin(
Hierarchize(
{DrilldownLevel(
{[Profit Center].[Profit Center].[All]}
) }
),
Hierarchize(
{DrilldownLevel(
{[Product Hierarchy].[L11 BFPP].[All]}
) }
)
),
Hierarchize(
{DrilldownLevel(
{[Product Hierarchy].[L14 SKU].[All]}
) }
)
),
Hierarchize(
{DrilldownLevel({[Plant].[Plant].[All]}) }
)
) DIMENSION PROPERTIES PARENT_UNIQUE_NAME,
HIERARCHY_UNIQUE_NAME ON ROWS
FROM
(
SELECT
(
{[Product SKU - Material].[Material Type].& [1U] & [ROH],
[Product SKU - Material].[Material Type].& [1U] & [PACK],
[Product SKU - Material].[Material Type].& [1U] & [HALB],
[Product SKU - Material].[Material Type].& [1U] & [FERT]}
) ON COLUMNS,
(
{[Profit Center].[Profit Center].& [1U] & [ULAM] & [0000100058],
[Profit Center].[Profit Center].& [1U] & [ULAM] & [0000100075],
[Profit Center].[Profit Center].& [1U] & [ULAM] & [0000100022],
[Profit Center].[Profit Center].& [1U] & [ULAM] & [0000100090],
[Profit Center].[Profit Center].& [1U] & [ULAM] & [0000100091],
[Profit Center].[Profit Center].& [1U] & [ULAM] & [0000900015]}
) ON ROWS
FROM
[Stock Balance]
)
WHERE
(
[Reporting Currency].[Reporting Currency].& [USD],
[Segment].[Segment].& [1U] & [0000001010],
[Company Code].[Company].[All],
[Time].[Month].& [2019] & [4]
) CELL PROPERTIES VALUE,
FORMAT_STRING,
LANGUAGE,
BACK_COLOR,
FORE_COLOR,
FONT_FLAGS
I would like to see the Plant name and SKU names rather than just the references.