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
Anonymous
Not applicable

The CODE() Function - where is it?

I am wondering if I am going mad here...? 🙂

Trying to create a calculated column using the CODE() function, but it doesn't seem to exist! 

FirstCharCode = CODE(Family[GetString]) -- gives me an error - failed to resolve name 'CODE' and intellisense doesn't return it.

 

So I look it up at - https://docs.microsoft.com/en-us/dax/code-function-dax  It has not been withdrawn - anyone got any thoughts on this? I am using March 2020 PBI Desktop version.

 

Thanks!

 

1 ACCEPTED SOLUTION
nandukrishnavs
Super User
Super User

@Anonymous ,

 

Yes. It is not working. But you could try UNICODE()

https://docs.microsoft.com/en-us/dax/unicode-function-dax

 



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

View solution in original post

2 REPLIES 2
nandukrishnavs
Super User
Super User

@Anonymous ,

 

Yes. It is not working. But you could try UNICODE()

https://docs.microsoft.com/en-us/dax/unicode-function-dax

 



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

Anonymous
Not applicable

@nandukrishnavs - thanks.

Yes, I was just wondering why the function was still there. Perhaps for backwards compatibility or for another application using DAX.

I've posted on the DAX documentation page to get them to update the page in some way.

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.

Top Solution Authors