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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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