Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Zed101
Frequent Visitor

Power BI Api to get parent dataset id by report id

If I have a report which is getting data from a dataset 1 which itself is getting data from another dataset 2, how to get dataset 2 id through report id as we can only know id of dataset 1, using api getDatasets(group id, report id).

Till now, I'm using an approach not very performant, which is like once I get datasource for dataset 1, I compare datasource name with all datasets database connection names, to filter out parent datasets.
As you can see in above, each time a call to get all datasets is time consuming.

Is there any better way to do this using either one or multiple api calls?

3 REPLIES 3
lbendlin
Super User
Super User

This step is followed as part of my approach, however, there is no dataset id in response, only datasource information.

"server" points to the workspace

"database"  points to the dataset

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.