How to Edit Power BI Live Connection Without Destroying Everything
Newsletter
Join our blog
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Start with the FREE community plan and get your lifetime access to 20+ courses. Get Instant Access Now!
Need help? Talk to an expert: (904) 638-5743
Private Training
Customized training to master new skills and grow your business.
On-Demand Learning
Beginner to advanced classes taught by Microsoft MVPs and Authors.
Bootcamps
In-depth boot camps take you from a novice to mastery in less than a week.
Season Learning Pass
Get access to our very best training offerings for successful up-skilling.
Stream Pro Plus
Combine On-Demand Learning platform with face-to-face Virtual Mentoring.
Certification Training
Prepare and ace your next certification with CertXP.
Private Training
Cheat Sheets
Quick references for when you need a little guidance.
Nerd Guides
Summaries developed in conjunction with our Learn with the Nerds sessions.
Downloads
Digital goodies - code samples, student files, and other must have files.
Blog
Stay up-to-date on all things Power BI, Power Apps, Microsoft 365 and Azure.
Community Discord Server
Start here for technology questions to get answers from the community.
Career Guides
Breaking into the field? Let these guides help get you started with a plan.
Affiliate Program
Earn money by driving sales through the Pragmatic Works' Training Affiliate Program.
Reseller Partner
It's time to address your client's training needs.
Foundation
Learn how to get into IT with free training and mentorship.
Management Team
Discover the faces behind our success: Meet our dedicated team
Contact Us
How can we help? Connect with Our Team Today!
FAQs
Find all the information you’re looking for. We’re happy to help.
If you use Power BI Desktop and Query Editor, do you know the true power of M? As you probably know, the Query Editor in Power BI is a powerful GUI that generates M, also known as the Power Query formula language. In a recent webinar, Pragmatic Works founder, Brian Knight, took a deep dive behind the GUI, so attendees could learn how to do even more data cleansing and transformation in Power BI using M.
What is M Query? M stands for Mashup—getting your data and mashing it together in very creative ways. M is easily made dynamic. For example, you can take a data set and set a dynamic date range.
The real reason to use M—Data Transformation. You can pivot/unpivot, remove unwanted characters and split columns. M is optimized for building highly flexible data mashup queries.
Some M Query fundamentals:
Where to write M:
You can write it in the Query Editor formula bar (much like in Excel) or you can use view>Advanced Editor.
M Query Result:
Can produce a single value, list (array), table (much like a list but can be formatted/filtered) or function (similar to what you can do with .net or T-SQL.)
M Query Tips:
A big thing to keep in mind is that M query is case sensitive, not as forgiving as T-SQL.
Using #shared to return library functions. This gives you the ability to see all the functions available to you and all the functions that have been used on a Power BI sheet.
Variables and Functions:
This is where we see the power of M come into play. A variable is a placeholder. It is changeable, not constant. But the real power of M comes in working with functions. Functions allow us to automate a whole bunch of processes with an M query, like split columns or make proper case. You can automate a function, for example: if looping over a folder of files, you can automate it to do a chosen function for every file that you pass through this function. This automation is truly what makes M so powerful.
Brian’s webinar is full of demos, including M Query basics, understanding M Query, taking a look at M code and variables and functions. So, check out Brian’s webinar to learn more and if you want an intensive course, our Power Query for Business is just what you need. Visit our website to learn more about this, and our other 30+ On-Demand Training courses.
ABOUT THE AUTHOR
SQL Server MVP and founder of Pragmatic Works. Brian has been working with SQL Server as a DBA and business intelligence professional since 1998. He has written more than 15 books on the topic and has spoken at dozens of conferences.
Free Trial
private training
Newsletter
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Leave a comment