<p>I have a multi dimensional OLAP cube with a number of dimensions. Some of these dimensions have hierarchies. The users would like to perform 'what-if' analysis on the measures in the cube by changing the hierarchies in the dimensions. </p>

<p>For example, they want to know the impact on departmental resource budgets by moving employees between departments or the movement in cost of manufacture if a product is moved from one factory to another.</p>

<p>Does anyone have a straight forward way to do this in a modern OLAP engine?</p>

[{'answer_id': 84636, 'author': 'Magnus Smith', 'author_id': 11461, 'author_profile': 'https://Stackoverflow.com/users/11461', 'pm_score': 0, 'selected': False, 'text': "<p>There may be tools that allow this sort of analysis, but I only have experience of writing MDX, which ought to be able to help you.</p>\n\n<p>Typical 'what if' analysis is more about changing values in the OLAP cube (e.g. change net sales from 845.45 to 700.00 and see what happens to gross profit). Your case is a bit different as you want to move members within a hierarhy, but keep the same values.</p>\n\n<p>I haven't worked through a full solution, but the way I would approach it would be to create a new 'calculated member' or set (on the fly) and use that to build up the new hierarchy that you want. Your query can then use that on one axis.</p>\n\n<p>Look carefully into 'visual totals' as there may be potential pitfalls there!</p>\n"}, {'answer_id': 86107, 'author': 'Mike McAllister', 'author_id': 16247, 'author_profile': 'https://Stackoverflow.com/users/16247', 'pm_score': 0, 'selected': False, 'text': "<p>Andy - It depends on the tool you're using. Some, for example, set the hierarchies at cube build time. Others have dynamic hierarchies. What tool are you working in?</p>\n"}, {'answer_id': 96190, 'author': 'ScaleOvenStove', 'author_id': 12268, 'author_profile': 'https://Stackoverflow.com/users/12268', 'pm_score': 1, 'selected': False, 'text': '<p>have you taken a look here? <a href="http://office.microsoft.com/en-us/excel/HA011265551033.aspx" rel="nofollow noreferrer">http://office.microsoft.com/en-us/excel/HA011265551033.aspx</a> if you are using sql server and excel, you want the "Excel Add-in for SQL Server Analysis Services" and you can perform writeback to the cubes. Might not be exactly what you want, but it is the closest I have come across.</p>\n\n<p>"What-if analysis and writeback  What-if analysis enables you to initiate a "what-if" scenario by updating data and analyzing the effects of changes on your data. You can save the scenario for future analysis. When you save the scenario, changes you made to data (known as writeback data) are written to the cube. Once you write back changes, the data is available for future analysis and can be viewed by and shared with others who have access to the cube."</p>\n'}, {'answer_id': 10437727, 'author': 'Andrew', 'author_id': 1372827, 'author_profile': 'https://Stackoverflow.com/users/1372827', 'pm_score': 1, 'selected': False, 'text': '<p>SSAS in SQL Server 2008 allows you to have multiple hierarchies. Although this will not allow your users to build and change hierarchies on the fly, you can still collect their requirements and rebuild the cube with those additional hierarchies</p>\n'}]
['https://Stackoverflow.com/questions/34362', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2661/']