Forum Discussion

MarynaBan's avatar
MarynaBan
Frequent Visitor
1 year ago
Solved

Get Dataset from semantic model in Application insights

Hi  I am a new in Power BI. I have a semantic model and a report. The data comes from three Azure Application Insights instances. In Power BI Desktop, I see the Model View. How can I find the datase...
  • v-kpoloju-msft's avatar
    v-kpoloju-msft
    1 year ago

    Hi MarynaBan,
    Apologies for the late reply. After reviewing the details you provided, I have identified few workarounds that may help resolve the issue. Please follow these steps:

    There is no direct built-in feature in Power BI Service to capture API calls, but you can use the following workarounds to track API requests being sent from Power BI:


    As your Power BI model operates in Direct Query mode, you can utilize DAX Studio to capture the executed queries. Using DAX Studio open the application and connect it to your Power BI model. Then, enable query tracing by navigating to the Advanced tab and selecting Enable All Queries under the Tracing section. After enabling this setting, refresh your Power BI report.

     
    SQL Profiler can be utilized to monitor Direct Query activity in Power BI. To start, install SQL Profiler from SQL Server Management Studio. Then, connect to Power BI Desktop's local instance by opening DAX Studio, going to the Advanced tab, and copying the Localhost connection string. Open SQL Server Profiler and connect to this instance. Initiate a new trace and refresh the Power BI report to capture Direct Query requests, enabling effective monitoring of API calls.
    SQL Server Profiler - SQL Server Profiler | Microsoft Learn

    Since the report is published to Power BI Service, you can review the dataset logs to analyse API activity. Navigate to Power BI Service and select the relevant dataset. Then, go to Settings and check the Data source credentials section for any available API details. If the API details are not visible, you can try extracting logs by accessing the Workspace, clicking on Dataset Refresh History, and reviewing any failed refresh attempts. These failures may provide insights into API call details.

    Capture API requests directly from Power BI using Fiddler or browser dev tools. Install Fiddler Classic, then open Fiddler and start capturing network traffic. Open Power BI Desktop and refresh the report. Look for requests to api.applicationinsights.io. Extract the exact API query used. Using Browser Dev Tools for Power BI Service: Open your Power BI Report in a browser. Press F12 to open Developer Tools. Go to the Network tab → Filter for applicationinsights.io. Refresh the report and look for the full API request.

     

    If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

     

    Thank you for using Microsoft Community Forum.