Forum Discussion

PANDAmonium's avatar
PANDAmonium
Resolver IV
5 years ago
Solved

Check which reports are using a dataflow

Is there a way to check which reports are using a dataflow? I planned on deleting a couple old dataflows, but wanted to verify that there aren't any reports currently using them. Thanks!
  • ibarrau's avatar
    5 years ago

    Hi. I think you have two alternatives. The first one is going one by one to the workspaces and activate the linage view. That way you can check the flow of data from sources to reports.

    https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-data-lineage

    The second and more complex option would be building a script with the Power Bi Rest API that should first get all the datasets in the tenant and then for each one of those check its sources.

    Hope that helps,

  • PANDAmonium's avatar
    3 years ago

    After getting sidetracked for *checks date* 1 year, 9 months, and 7 days... I finally got around to building this thing out. Ended up finding my own post as a top Google result and it looks like people were still having issues tieing the Dataset Id to the Dataflow Id via the REST API, but it looks like Microsoft Power BI updated some things so here is an updated solution:

     

    They added a upstream datasources to the view lineage option, but if you insist on using the REST API, they've added a REST call to get all the Dataset and Dataflow Id links for a workspace.

    https://learn.microsoft.com/en-us/rest/api/power-bi/admin/datasets-get-dataset-to-dataflows-links-in-group-as-admin#code-try-0

    The solution uses the REST API to get the group Ids then iterates through that to get the dataset Ids then again to get the dataset and dataflow Id links then again for the dataflow info all within a dataflow that are brought into tracking reports.

     

    Sorry to necro this post; hope it helps someone to try it rather than give up since I almost did after reading through the dated replies.