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
shill1000
Helper IV
Helper IV

Good source of PQ/M language help?

Hi,

 

I couldn't find an existing post, so if this is answered anywhere else, please forgive me and link ot the relevant posts below.

 

Anyone got a good source of material on Power Query training, hints and tips etc. particularly on M laguage syntax? I've seen the MS Docs pages (so dry and barely helpful in some instances) and I'm subscribed to https://www.myonlinetraininghub.com/ but I'm looking for something more PQ focussed for myself and colleagues.

3 ACCEPTED SOLUTIONS
Mariusz
Community Champion
Community Champion

Hi @shill1000 

 

Please see the below links to the youtube videos, it's a good start.

 

https://www.youtube.com/watch?v=oHR73-zAMpI

https://www.youtube.com/watch?v=_zEmTGHV3UM&t=2198s

https://www.youtube.com/watch?v=TpujELq3Iug&t=2090s

https://www.youtube.com/watch?v=IdwmH-6ED60

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

artemus
Employee
Employee

Your best bet is to look at the language spec:

https://download.microsoft.com/download/8/1/A/81A62C9B-04D5-4B6D-B162-D28E4D848552/Power%20Query%20M... 

 

 

It is pretty compresentitive as far as the syntax goes.

View solution in original post

dax
Community Support
Community Support

Hi @shill1000 , 

If you want to get dynamic date range in M code, you could try to use parameter in it. You could refert to Pass parameter to SQL Queries statement using Power BI  for details.

In addition, you also could refer to Introduction To Power Query M Code  and basics-of-m-power-query-formula-language  or other toturial in YouTube for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
artemus
Employee
Employee

Your best bet is to look at the language spec:

https://download.microsoft.com/download/8/1/A/81A62C9B-04D5-4B6D-B162-D28E4D848552/Power%20Query%20M... 

 

 

It is pretty compresentitive as far as the syntax goes.

Thanks that helps but its a dry document and not easy to navigate. I was looking something a bit more structured, particularly with practical examples.

 

i.e. one of the things I struggle with is the syntax for non-basic date handling. Most of the basic documentation only describes standard scenarios, but I struggle to find good help with things like dynamic date ranges such as fetching data in the previous x whole months. I could do it in SQL OK, but the syntax in M is more complex. 

 

FYI I've shelled out for this as it has good reviews and I tend to find the MS books generally well laid out with good examples and sample files. But they too can be a bit dry and hard to navigate for specific help.

https://www.amazon.co.uk/Collect-Combine-Transform-Business-Skills/dp/1509307958/ref=asc_df_15093079...

 

I get the impression there are a plethora of resources for Excel, Power BI and Dax, but far less for M.

dax
Community Support
Community Support

Hi @shill1000 , 

If you want to get dynamic date range in M code, you could try to use parameter in it. You could refert to Pass parameter to SQL Queries statement using Power BI  for details.

In addition, you also could refer to Introduction To Power Query M Code  and basics-of-m-power-query-formula-language  or other toturial in YouTube for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Mariusz
Community Champion
Community Champion

Hi @shill1000 

 

Please see the below links to the youtube videos, it's a good start.

 

https://www.youtube.com/watch?v=oHR73-zAMpI

https://www.youtube.com/watch?v=_zEmTGHV3UM&t=2198s

https://www.youtube.com/watch?v=TpujELq3Iug&t=2090s

https://www.youtube.com/watch?v=IdwmH-6ED60

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

I'll try these and respond thanks.

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