KB4487751 - FIX: An unexpected exception error occurs when you run a TREATAS function DAX query from Power BI desktop in SSAS 2017

Applies to: SQL Server 2017 Developer on WindowsSQL Server 2017 Enterprise Core on WindowsSQL Server 2017 Enterprise on Windows


Assume that you connect to a SQL Server 2017 Analysis Services (SSAS 2017) tabular model from Power BI desktop. After upgrading to Cumulative Update 13 for SSAS 2017, when you run a Data Analysis Expressions (DAX) query that contains TREATAS function, the query may fail with an error message that resembles the following:

"An unexpected exception occurred."


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


This issue is fixed in the following cumulative update for SQL Server:

About cumulative updates for SQL Server:

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:


Learn about the terminology that Microsoft uses to describe software updates.