Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

SSRS Report MDX Crossjoin error

$
0
0

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])


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>