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
kimalto452
Frequent Visitor

Very basic, when use # ? (M language)

Hi, I read documentation but can't find explanation for what mean # and when I need to use it. I se its use for variable name with space... but I saw more this symbol in code something like #date() I suspect what its use for data type... but I can't find some explanation, can you help me with some link to doc or some explanation?

1 ACCEPTED SOLUTION

Hi @kimalto452 ,

unfortunatels this is used in too many different ways.

You can read more about its role as an escape sign and part of identifiers here: https://docs.microsoft.com/en-us/powerquery-m/m-spec-lexical-structure

But they are also using it in some function names, which I find very unfortunate as well. Documentation about this can only be found in the function documentation itself: https://docs.microsoft.com/en-us/powerquery-m/sharptable

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @kimalto452 ,

 

Is what @ImkeF provided helpful?

 

If it is, please accept her reply as the solution. Your contribution is highly appreciated.

 

If not, please let us know.

 

 

Best Regards,

Icey

 

 

amitchandak
Super User
Super User

@ImkeF , Can you help with this?

 

@kimalto452 , You can refer to this in-between: https://radacad.com/basics-of-m-power-query-formula-language

Hi @kimalto452 ,

unfortunatels this is used in too many different ways.

You can read more about its role as an escape sign and part of identifiers here: https://docs.microsoft.com/en-us/powerquery-m/m-spec-lexical-structure

But they are also using it in some function names, which I find very unfortunate as well. Documentation about this can only be found in the function documentation itself: https://docs.microsoft.com/en-us/powerquery-m/sharptable

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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
Top Kudoed Authors