FIX: Calculated column that uses the RELATED function in DAX contains empty values in SQL Server 2012 PowerPivot for Excel 2010 or in Analysis Services tabular models

Article translations Article translations
Article ID: 2720619 - 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

Consider the following scenario:
  • You install Microsoft SQL Server 2012 PowerPivot for Microsoft Excel 2010 or SQL Server 2012 Analysis Services. You use a tabular deployment mode for the installation.
  • There is a table in the model that contains many base columns and calculated columns. One of the calculated columns uses the RELATED function Data Analysis Expressions (DAX).
  • You perform a ProcessFull operation on the table.
In this scenario, the calculated column that uses the RELATED function may contain empty values. Additionally, SQL Server 2012 crashes intermittently. This issue occurs if the following conditions are true:
  • The table contains more than one outgoing relationships.
  • At least two relationships have the same foreign key column.
  • The primary key column for each relationship has the same name.
Note This issue occurs not only when there is a calculated column that contains the RELATED function. You may encounter a similar issue if there is an object that has a dependency on one of the relationships.

Cause

This issue occurs because the relationship that has a dependency on the calculated column is selected arbitrarily. Therefore, the calculated column that depends on the relationship is processed before the relationship is processed.

Resolution

Cumulative update information

SQL Server 2012

The fix for this issue was first released in Cumulative Update 2. 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:
2703275 Cumulative update package 2 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.

Workaround

To work around this issue, do not use the same name for the primary key column for each relationship.

Properties

Article ID: 2720619 - Last Review: November 19, 2012 - Revision: 2.0
Applies to
  • Microsoft SQL Server 2012 Enterprise
  • Microsoft SQL Server 2012 Developer
  • Microsoft SQL Server 2012 Standard
Keywords: 
kbtshoot kbqfe kbfix kbexpertiseadvanced kbsurveynew KB2720619

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