Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello, I'm trying to do a while loop in Power BI M language. But all of the logic are all over my head! I'd like to start with the very basic, which is to understand the logic.
How would you translate a very simple loop like this into M language?
while X == True:
do abcdef
if Y == True:
end the loop
Thanks very much!
@Anonymous
Please check this article
https://www.data-insights.de/loops-in-m-recursion/
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 40 | |
| 30 | |
| 24 |