Multiple Cubes vs One Cube
Posted: Thu Sep 19, 2019 7:22 pm
Current Version: Planning Analytics Local (Tm1 and Workspace)
Hi there,
I'm wondering what are the impacts of building a sparse cube with
• Company Branch
• Year
• Month
• Day
• Version
• Products
• Metrics
And the 'Metric' Dimension has the elements:
• Unit Sold
• Sale Price
• Product Cost
• Product Tax
• Revenue
• Sale Cost
• Tax
The 'Unit Sold' and 'Sale Price' are recorded daily, but 'Product Cost' and 'Product Tax' are recorded yearly. So, the 'Product Cost' and 'Product Tax' data are loaded only on 'January', 'Day 01' and 'Actual' (version) elements. Then, 'Sale Cost' and 'Tax' are calculated by:
['Sale Cost'] = DB('Sales', !Company Branch, !Year, 'January', 'Day 01', 'Actual', !Products,'Product Cost') * ['Unit Sold'];
['Tax'] = DB('Sales', !Company Branch, !Year, 'January', 'Day 01', 'Actual', !Products, 'Product Cost') * ['Unit Sold'];
I'm aware that the best practice is to have separate cubes to limit the amount of times that the data is stored, also to avoid confusion when users are retrieving data. However, in this case, the data is stored on "dummy" elements and the users will have a PAW view with hidden titles for those who are needed.
The business requirements that I described is just an example, what I wanted to explain is the aproach of using one cube vs multiple cubes. I'm considering to use one cube aproach in many others scenarios. But I'm not sure of all the negative impacts. This aproach brings me flexibility to recreate the model in other clients in an easy way without recreating cubes to attend their needs (some will need 'Sale Cost' by Month, and so on)...
I'm sorry for the grammar, English is not my first language.
If a better explanation of the case is needed, please let me know.
Hi there,
I'm wondering what are the impacts of building a sparse cube with
• Company Branch
• Year
• Month
• Day
• Version
• Products
• Metrics
And the 'Metric' Dimension has the elements:
• Unit Sold
• Sale Price
• Product Cost
• Product Tax
• Revenue
• Sale Cost
• Tax
The 'Unit Sold' and 'Sale Price' are recorded daily, but 'Product Cost' and 'Product Tax' are recorded yearly. So, the 'Product Cost' and 'Product Tax' data are loaded only on 'January', 'Day 01' and 'Actual' (version) elements. Then, 'Sale Cost' and 'Tax' are calculated by:
['Sale Cost'] = DB('Sales', !Company Branch, !Year, 'January', 'Day 01', 'Actual', !Products,'Product Cost') * ['Unit Sold'];
['Tax'] = DB('Sales', !Company Branch, !Year, 'January', 'Day 01', 'Actual', !Products, 'Product Cost') * ['Unit Sold'];
I'm aware that the best practice is to have separate cubes to limit the amount of times that the data is stored, also to avoid confusion when users are retrieving data. However, in this case, the data is stored on "dummy" elements and the users will have a PAW view with hidden titles for those who are needed.
The business requirements that I described is just an example, what I wanted to explain is the aproach of using one cube vs multiple cubes. I'm considering to use one cube aproach in many others scenarios. But I'm not sure of all the negative impacts. This aproach brings me flexibility to recreate the model in other clients in an easy way without recreating cubes to attend their needs (some will need 'Sale Cost' by Month, and so on)...
I'm sorry for the grammar, English is not my first language.
If a better explanation of the case is needed, please let me know.