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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

What are the shortcuts to modify m in pbid(powerbi desktop)

hello , pbiers

I want to modify m querys in pbid. But it is very slow to wait query finish. I want to skip query wait stage. then I find a way to solve it. I modify M query in tabular eidtor, and save M query modification  in pbid. But when I opened PBID , I found M query is same as before . is there any good ways to modify m query that can skip query wait stage? 

looking forward to receving your solutions!

thank you very much!

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

If you're good enough at writing M that you don't immediately need to see the results of the code you're writing, then I'd recommend writing your code offline in something like Notepad++ or Visual Studio where you can apply M code intellisense and formatting.

 

If you're not confident enough to do that, then I'd recommend adding a TopN filter at the start of your query, so you're only ever working on 10 or so rows, and therefore step evaluation should be significantly quicker.

 

If your step evaluations are still too slow only working on 10 rows, then you probably want to work on your code optimisation, rather than trying to skip step evaluation.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

If you're good enough at writing M that you don't immediately need to see the results of the code you're writing, then I'd recommend writing your code offline in something like Notepad++ or Visual Studio where you can apply M code intellisense and formatting.

 

If you're not confident enough to do that, then I'd recommend adding a TopN filter at the start of your query, so you're only ever working on 10 or so rows, and therefore step evaluation should be significantly quicker.

 

If your step evaluations are still too slow only working on 10 rows, then you probably want to work on your code optimisation, rather than trying to skip step evaluation.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Anonymous
Not applicable

well, I think apply parameter screening in M query is also a good idea. loading less data in PBID then publish to PBI Service. Change parameter filters on dataset,then refresh all data through data gateway.

would you like this one?

Anonymous
Not applicable

HI,BA_Pete,

thank you for your reply and suggestion.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.

Top Kudoed Authors