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 nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
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/
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 17 | |
| 11 |
| User | Count |
|---|---|
| 54 | |
| 53 | |
| 40 | |
| 37 | |
| 32 |