![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a situation where I have a product dimension and through time some members of the product dimension get discontinued. How do I setup the cube so that if there are missing values for that measure the dimension member for products get suppressed? |
#3
| |||
| |||
|
|
Have a member property with Active and Inactive. As you have found, you cannot delete a member so long as it has fact records associated with it. However, you can incrementally process the dimension and change the member property from Active to Inactive -- and then setup a virtual dimension against the member property with Active as the default member. This will automatically slice the cube for Active data. Hope that helps. -- Dave Wickert [MSFT] dwickert (AT) online (DOT) microsoft.com Program Manager BI SystemsTeam SQL BI Product Unit (Analysis Services) -- This posting is provided "AS IS" with no warranties, and confers no rights. "Rico Cali" <ricocali (AT) hotmail (DOT) com> wrote in message news:675e1895.0409082152.4d268761 (AT) posting (DOT) google.com... I have a situation where I have a product dimension and through time some members of the product dimension get discontinued. How do I setup the cube so that if there are missing values for that measure the dimension member for products get suppressed? |
#4
| |||
| |||
|
|
Have a member property with Active and Inactive. As you have found, you cannot delete a member so long as it has fact records associated with it. However, you can incrementally process the dimension and change the member property from Active to Inactive -- and then setup a virtual dimension against the member property with Active as the default member. This will automatically slice the cube for Active data. Hope that helps. |
#5
| |||
| |||
|
|
I apologize Dave but can you elaborate? "Dave Wickert [MSFT]" <dwickert (AT) online (DOT) microsoft.com> wrote Have a member property with Active and Inactive. As you have found, you cannot delete a member so long as it has fact records associated with it. However, you can incrementally process the dimension and change the member property from Active to Inactive -- and then setup a virtual dimension against the member property with Active as the default member. This will automatically slice the cube for Active data. Hope that helps. |
#6
| |||
| |||
|
|
And in your case, you have a situation where the dependency changes over time -- and you did not indicate to us how important retaining history of the discontinued products was to you . . . |
|
What your original posting asked for was how to handle products which became "discontinued". Thus they should never have fact rows which appear for them any more -- and you wanted to remove those members from the dimension. |
|
What I suggested was that you instead have a member property called "Status" and have each member be either Active or Inactive. If you then place a virtual dimension against that member property, you can perform your analysis with either ALL PRODUCTS (i.e. include the history of the discontinued products); or slice the dimension by only looking at Active products. If you set Active to be the default member of the virtual dimension, then by-default, if you don't ask specify what Status you want, you would only get the Active products. If by-default, you want to see all history (i.e. even those facts associated with sales of discontinued products), then set the default member to be the ALL member of the virtual dimension. |
#7
| |||
| |||
|
|
And in your case, you have a situation where the dependency changes over time -- and you did not indicate to us how important retaining history of the discontinued products was to you . . . All I want to do is not have the member "appear" (I still want the member to "physically" exist) when the data is missing for a particular date member in the cube. When I change the date member where it did exist and there are values for it in the cube I want those members to "appear". What your original posting asked for was how to handle products which became "discontinued". Thus they should never have fact rows which appear for them any more -- and you wanted to remove those members from the dimension. No, I just don't want those members to "appear" in the cube if the date member value for it does not exist for that time. I still want the member values to "physically" exist. What I suggested was that you instead have a member property called "Status" and have each member be either Active or Inactive. If you then place a virtual dimension against that member property, you can perform your analysis with either ALL PRODUCTS (i.e. include the history of the discontinued products); or slice the dimension by only looking at Active products. If you set Active to be the default member of the virtual dimension, then by-default, if you don't ask specify what Status you want, you would only get the Active products. If by-default, you want to see all history (i.e. even those facts associated with sales of discontinued products), then set the default member to be the ALL member of the virtual dimension. That will not work because I will be looking at that product at different time dimensions and properties can only be dimension by its member. Member properties has no coorelation with other dimensions such as the "time" dimension. What I want the cube to do is this: If the product exist until March 3 2001, I don't want the members to "appear" on March 3 2001 and the future since the measures will be missing. Of course I want the member value for the time dimension to exist because I will still need to look at the measures for that product when it did exist. Maybe I'm missing something here. Maybe this might be just a function of the "Client Tool"? If it is, which tools will optionally allow me to "not show" members if the measures don't exist for that row. |
![]() |
| Thread Tools | |
| Display Modes | |
| |