Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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!
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 30 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 71 | |
| 59 | |
| 39 | |
| 22 | |
| 22 |