Results 1 to 4 of 4

Thread: Tricky Question about using Calculated Member in AS

  1. #1
    Join Date
    Dec 2003
    Posts
    140

    Tricky Question about using Calculated Member in AS

    Hi,

    I am really stuck here and need some help.

    The scenario is that I have a dimension called Product... each product is given points and this is defined in the underlying product table.

    The table on which my fact is based has a field called QtySold (which is the qty sold for the product). WhatI want is to somehow use Calculated Member (if that is the right solution) so that for any selected product, the user get's to see a calculated field called, say' Points earned, which will be QtySold multiplied by the points for that product.

    Hoping that my question is clear, can someone please help me find a solution.

    Billions of thanks in advance.

  2. #2
    Join Date
    Feb 2003
    Posts
    1,048
    Use the "Calculated Member Builder" dialog box to add the CM to an existing cube or virtual cube.

    Otherwise, to make it part of the create cube statement, the create member statement would look like:

    CREATE MEMBER [Cube Name].[Dimension Name].[Points Earned]
    AS '[Dimension Name].[QtySold] * [Dimension Name].[Product Points]'

  3. #3
    Join Date
    Dec 2003
    Posts
    140
    Hmmmm ???

    Thanks for the reply. Can yo kindly guid me to a good URL or a book which I can use to get very confortable with MDX?

    I'll appreciate your help. Many thanks.

  4. #4
    Join Date
    Feb 2003
    Posts
    1,048
    Lookup "Create Member" in your Books Online (BOL). It's installed with your SQL Server client tools.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •