- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This step is followed as part of my approach, however, there is no dataset id in response, only datasource information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"server" points to the workspace
"database" points to the dataset
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi thanks for the post and I am just experiencing the same problem. I am using the exact API you mentioned the problem is "database" only returns dataset name instead of dataset id, but the get dataset requires dataset id... so do you might know a better way? Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are supposed to have harvested the dataset IDs in the previous step. The API call for this thread is focusing on the data sources.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
Anonymous
| 08-23-2024 07:07 AM | ||
01-18-2022 12:30 PM | |||
05-10-2024 08:25 AM | |||
04-08-2024 06:06 AM | |||
02-14-2024 03:39 AM |
User | Count |
---|---|
8 | |
2 | |
2 | |
2 | |
2 |