Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Code Behind a Power BI report

Hey!
For a presentation I am doing, I need the code/Queries which result in the report/ Canvas.  Please let me knwo if such a thing exists in power BI . 

Thanks!

 

  • Anonymous I understand where you are coming from... Similar to SSRS, where you can export/view the complete .rdl file in an XML format. But don't think it is available or possible in Power BI currently.

3 Replies

  • PattemManohar's avatar
    PattemManohar
    Community Champion

    Anonymous  The answer is Partially Yes. You can get the code behind the steps that are performed in "Power Query Editor" by selecting "Advance Editor" (where you can see the auto M-code generated) but where as in Data Pane you need to get all the calculated columns/Tables and Measures logics manually to your presentation.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks for the reply! However, that is not what I am looking for. I need the code behind the canvas. i.e say I use a table, a pie chart, a slicer in the report. I would like to see the code which is behind that. I hope I am being clear enough. 

      • PattemManohar's avatar
        PattemManohar
        Community Champion

        Anonymous I understand where you are coming from... Similar to SSRS, where you can export/view the complete .rdl file in an XML format. But don't think it is available or possible in Power BI currently.