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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
oscarca
Helper I
Helper I

Is "Nameof" function supported in Visual studios Tabular project ?

Hello Community,

 

I am trying to set up field parameters following this guide :"https://p3adaptive.com/2022/05/completing-the-set-up-field-parameters-using-tabular-editor/" inside Visual Studios 2019 tabular Project. The issue that I am facing is when I try to create the Calculatated table using the "Nameof" function for example ={("Item",Nameof('Dim_Item',[Item]),0)}. It doesn't specify the the error more than that it underlines "Nameof" with red. Isn't "Nameof" supported in Visual Studios 2019 ?

 

Best regards,

Rubrix

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@oscarca , In power bi it was supported recently. I think you should use recent version of studio too

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

4 REPLIES 4
v-luwang-msft
Community Support
Community Support

Hi @oscarca ,

Visual Studio 2019 version is higher than Visual Studio 2019 16.3 support for nameof.refer:

https://visualstudiomagazine.com/articles/2019/09/05/vs2019-16-3-preview.aspx 

 

And the NameOf operator is available in Visual Basic 14 and later.Visual Studio 2019 the latest version  is Visual Basic 16.9 .

 

 

Best Regards

Lucien

 

 

Thank you for your response !

amitchandak
Super User
Super User

@oscarca , In power bi it was supported recently. I think you should use recent version of studio too

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thank you !

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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