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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors