Forum Discussion

stribor45's avatar
stribor45
Post Prodigy
3 years ago
Solved

How to debug in Power Bi Desktop

Is there a way to debug within Power Bi Desktop? I am not familiar with M language and would like to manipulate data returned from API call before this is sent to the table but I have no idea what I ...
  • lbendlin's avatar
    3 years ago

    In Power Query you break the transforms into small steps. You can examine the output of each step by selecting it in the "Applied Steps"  section.

    You can click next to the links in your result tables to see a preview of the data behind them.
    You can invoke functions and see their output based on sample parameters you provide.
    Power Query allows you to throw errors if you arrive at code junctions you don't expect.

    For API calls you can use tools like Postman to test them out before implementing them in Power Query.

     

    Above all - invest time learning M. It is time well spent.

  • lbendlin's avatar
    lbendlin
    3 years ago

    Let's say you have a function that cubes a value.

     

    (val)=> val*val*val

    when you click on the query for that function you see its details and parameters

    Now you can "test" it by invoking with a sample value.