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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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

@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
Community Champion
Community Champion

@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
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (25)