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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.