Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It looks like you are just getting started with MDX. There are some fundamental concepts that will help you get what you need. This <a href="http://www.mssqltips.com/sqlservertip/2916/comparison-of-queries-written-in-tsql-and-sql-server-mdx/">comparison of SQL and MDX</a> might be helpful. MDX uses the where clause as a slicer (to select certain dimension members) rather than a filter. You can't put <em>member = somevalue</em> in the where clause. And you can't really use the where clause to define a relationship to some other table. </p> <p>Instead, your where clause would be something more like </p> <pre><code>[Data Type].[ID].[ID].&amp;[4] </code></pre> <p>Since I can't see your data model, I can't be sure, but I would guess that <em>[Chain].[Customer ID] = [Measures].[Customer ID]</em> is something that you want to define the the dimension usage of your cube rather than in the query. </p> <p>Edit: Now that the question has been edited, it looks like you are creating a calculated member. in this case there is no select or where clause. It will look more like this: </p> <pre><code>CREATE MEMBER CURRENTCUBE.[Measures].Forecast_Gross_Sales AS Aggregate([Data Type].[ID].[ID].&amp;[4], [Measures].[Gross Sale]) , VISIBLE = 1 , DISPLAY_FOLDER = 'Forecast' , ASSOCIATED_MEASURE_GROUP = 'Data Types'; </code></pre> <p>The relationship from the measure group through the Customer dimension to the Chain dimension is something that should be defined in the dimension usage. This is called a <a href="http://technet.microsoft.com/en-us/library/ms175669.aspx">Reference dimension relationship.</a> </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload