Hello,
This query is working fine in the Query Designer but when I try to use it in a report I get the following error:
"Query execution failed for dataset 'BranchMonthlyBucket'. Query(33,1) The branches hierarchy is used more than once on the Crossjoin function."
Was wondering if someone could suggest how I can correct. Thanks!
SELECT NON EMPTY
{
[Measures].[Book Resale - SALE],
[Measures].[Ship Resale - SALE],
[Measures].[Budget]
}
ON COLUMNS,
NON EMPTY
{([Time].[Month].[Month].ALLMEMBERS)*[Branches].[Branches].[Parent Branch Including Inplants]}
ON ROWS
FROM
(
SELECT
(
STRTOSET(@pickTimeYear, CONSTRAINED),
STRTOSET(@pickTimeMonth, CONSTRAINED),
STRTOSET(@pickBusinessUnit, CONSTRAINED),
STRTOSET(@pickRegion, CONSTRAINED)
)
ON COLUMNS
FROM [Sales])