INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

MDX Calc measure to accomdate Smi-Additive and delta SCD at the same time?

MDX Calc measure to accomdate Smi-Additive and delta SCD at the same time?

(OP)
thread960-1619662: MDX Calc measure to accomdate Smi-Additive and delta at the same time? gave a great example and answer as to handle the processing of deltas over time in a cube using mdx.

I have created a cube for inventory that uses this same concept to track inventory adjustments over time for specific SKUs. I have an extension to the problem that I hope someone can help me with.

My inventory adjustments are associated with a slow changing dimension such that, at the start of time my inventory position has a dimensional attribute status of 'REGULAR PRICE'. Over time, SKUs go on sale, therefore I end up with inventory adjustmens for the same SKU with a status of 'ON SALE'. Now if I filter on RETAIL STATUS = 'ON SALE', I get negative number.

Problem is, I want the mdx calculation to sum the deltas since the opening inventory regardless if they were 'REGULAR PRICE' or 'ON SALE'. For inventory, I need to sum up all deltas regardless of status to get the correct current inventory number, but show the current total based upon the status of 'REGULAR' or 'ON SALE'.

So for the following data
DATE SKU RETAIL STATUS AMOUNT
June 12 123 REGULAR 100
June 15 123 REGULAR -5
June 17 123 ON SALE -10
June 21 123 ON SALE -10

Doing the calculation as a sum over time filtering on 'ON SALE', I get a value of -20 for my current inventory. What I want is to see my 'ON SALE' inventory as 75. If I do not filter on the retail status, I get the correct inventory amount of 75.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close