Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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!

 

2 Replies

    • Anonymous's avatar
      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.