Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
asirieka
Regular Visitor

FirstNonBlankValue and LastNonBlankValue not supported in Tabular SSAS15.0.32.50

Hi, I'm using Tabular 15.0.32.50 and in my Tabular Model there are measures that use FirstNonBlankValue and LastNonBlankValue expressions. However, I get this error when I try to add a measure to a Power BI report connected to this model via SQL Server Analysis Service. 

MicrosoftTeams-image.png

 

From what I found, these expressions were released back in 2019. Can I know what version this syntax is supported in? 

 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @asirieka ,

According to the error message displayed in the screenshot, it seems that Power BI doesn’t recognize the function FirstNonBlankValue and  LastNonBlankValue. The following official documentations referred the info below:

  • This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

FIRSTNONBLANKVALUE function (DAX) - DAX | Microsoft Learn

LASTNONBLANKVALUE function (DAX) - DAX | Microsoft Learn

You can consider upgrading to a newer version of Analysis Services. Alternatively, you may need to find a different way to achieve the same result using other functions that are supported in your current version of Analysis Services.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
asirieka
Regular Visitor

Thank you, this was helpful😊

v-yiruan-msft
Community Support
Community Support

Hi @asirieka ,

According to the error message displayed in the screenshot, it seems that Power BI doesn’t recognize the function FirstNonBlankValue and  LastNonBlankValue. The following official documentations referred the info below:

  • This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

FIRSTNONBLANKVALUE function (DAX) - DAX | Microsoft Learn

LASTNONBLANKVALUE function (DAX) - DAX | Microsoft Learn

You can consider upgrading to a newer version of Analysis Services. Alternatively, you may need to find a different way to achieve the same result using other functions that are supported in your current version of Analysis Services.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.