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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.