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
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

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

Thank you !

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.