FIX: SQL Server is slow or an "Out-Of-Memory" error occurs when you run a query with nested IF statements on DAX measures in SSAS 2012

Article translations Article translations
Article ID: 2733091 - View products that this article applies to.
Microsoft distributes Microsoft SQL Server 2012 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 fix release.
Expand all | Collapse all

On This Page

Symptoms

Slow performance or an out-of-memory error occurs when you run a query in Microsoft SQL Server 2012 Analysis Services (SSAS 2012).

This issue occurs when the following conditions are true:
  • The query contains DAX measures.
  • One of the DAX measures contains nested IF statements together with other DAX measures that contain complex formulas.
Note This issue only occurs on an SSAS 2012 server that is running in PowerPivot for SharePoint or Tabular models.

Cause

This issue occurs because the required memory is greatly increased when the conditions of inner IF functions are joined to the conditions of outer IF functions, especially when the conditions of the inner IF functions are complex in the query plan. 

Note When the conditions of inner IF functions are joined to the conditions of outer IF functions, each node of the inner IF functions are joined to the outer IF functions in the query plan.

Resolution

Cumulative update information

Cumulative update package 3 for SQL Server 2012

The fix for this issue was first released in Cumulative Update 3. For more information about how to obtain this cumulative update package for SQL Server 2012, click the following article number to view the article in the Microsoft Knowledge Base:
2723749 Cumulative update 3 for SQL Server 2012
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2692828 The SQL Server 2012 builds that were released after SQL Server 2012 was released

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References

For more information the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base:
935897 An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems
For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:
822499 Naming schema for Microsoft SQL Server software update packages
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 2733091 - Last Review: November 19, 2012 - Revision: 4.0
Applies to
  • Microsoft SQL Server 2012 Developer
  • Microsoft SQL Server 2012 Enterprise
  • Microsoft SQL Server 2012 Express
  • Microsoft SQL Server 2012 Standard
  • Microsoft SQL Server 2012 Web
Keywords: 
kbtshoot kbqfe kbfix kbsurveynew kbexpertiseadvanced kbseo KB2733091

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com