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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
stevedep
Memorable Member
Memorable Member

Always execute last Power M statement in Visual Studio or Power Query / Power BI

Hi,

 

It would be great to have a function that accepts a function and always execute the last statement. This would speed up development significantly. Any thoughts on how to approach this?

 

I am coding in Visual Studio (Power Query SDK). Its faster than using the editor in Power BI, but not fast enough.

 

Looking forward to your thoughts.

 

Kind regards, 

 

Steve. 

3 REPLIES 3
stevedep
Memorable Member
Memorable Member

Hi,

This website is an inspiration to create something like requested. Will give it a try once I have some more time. 

https://xxlbi.com/blog/switch-true-in-power-query/

 

Anonymous
Not applicable

Hi @stevedep ,

 

Did you mean the recursive functions in Power Query? Please kindly refer to

Recursive Functions in Power BI / Power Query — The Power User.

Fibonacci Sequence: Understanding the Power Query Recursive Function for Power BI - RADACAD

 

Best Regards,

Stephen Tao

 

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

Thanks for your reply. No, what I am looking for is:

function a (par function b) => execute last statement of of b

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors