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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Kudoed Authors