Forum Discussion

Charles-C's avatar
Charles-C
Regular Visitor
4 years ago

MdxScript(Model) (4, 60) Failed to resolve name 'COALESCE'

Good Day.


I have an SSAS tabular model (SQL Server 2016 RTM (1200) – Compatibility Level) that I use to connect to Power BI Desktop. All my measures are created in the tabular model so that I can use the same model for different reports. I'm not keen on (blank) results in a visual so I make use of COALESCE to resolve this.


When I deploy the model with the measure then I get an error: "Failed to resolve name 'COALESCE'. It is not a valid table, variable, or function name." and it won’t deploy. If I deploy the model without the measure then it deploys fine, I can then add the measure afterwards and it will then deploy successfully again but this time with my measure but when I try and use the measure in Power BI I get the same error.


Whilst connected to my SSAS model, if I try and create a new measure in Power BI then the COALESCE function is not available in Power BI.


Has anyone experienced this before or can anyone perhaps give me some guidance on where I could be going wrong?


I am running Power BI desktop version 2.100.1182.0 64-bit (December 2021)

 

5 Replies