This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi All
Is there any way to capture execution time between Power Query steps starting from source till end of last step?
Thanks for inputs!
@Sahir_Maharaj 's solution will not work.
M statements are not evaluated in the order they are written, they are evaluated when needed...
Look at my post here: I created some M functions to time the execution o... - Microsoft Fabric Community
Hello @abpgupta,
In the Advanced Editor, you will see the M code that defines your query. Insert the following code at the beginning of the query:
let
StartTime = DateTime.LocalNow(),
Source = [Your Source],
...[Your Query Steps]...
EndTime = DateTime.LocalNow(),
ExecutionTime = EndTime - StartTime
in
ExecutionTime
This will capture the start time, end time and execution time of your query in the format of DateTime.
Let me know if you might need further assistance.
I had done this but both times came same. I am looking for time to fetch data. Thank you!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 60 | |
| 48 | |
| 29 | |
| 23 | |
| 23 |