Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003

    Unanswered: The solution used in the example Budget cube


    This is related to the example FOODMART database which comes with Analysis Services.

    You must have come across the neat trick that is used in the Budget cube and how a parent levels show the sum of the child levels even when both of them appear to show +ve values but the parent works by treating some of the child values as negative while treating some as +ve.

    For example if you browse the budget cube, you'll see a row for Net Sales having a value of 398K (rounded). But when you drill down, you'll see 2 child records of Net Sales

    Sales 565K (rounded)
    Expenses 167K (rounded)

    Do you see that even though the figures for Sales and Expenses appear as positive but when these are rolled up /aggregated, the budget cube knows which value is to be taken as +ve and which is to be taken as -ve. Otherwise the parent (Net Sales) would have shown an incorrect figure of 732K (565+167 = 732).

    This is basically the idea which I alo want to use but am not clear how to approach this

    I will be very very grateful for your help.

  2. #2
    Join Date
    Sep 2004
    It's called a unary operator. On the Advanced tab in the dimension editor.

  3. #3
    Join Date
    Oct 2003
    Many Thanks

    I'll check the unary operator

Posting Permissions

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