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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Question about lineage between tables from different workspaces

Hello,

 

I have 3 workspaces composed like this :

pbi_workspaces.png

 

The 3rd Workspace's tables includes a reference to a table from the 1st Workspace and another reference to a table from the 2nd Workspace.

 

The scan of the 3rd workspace returns :

  • A dataset with my 2 tables
  • An expression list that represent each table's expression
  • An "upstreamDatasets" that represent each source workspace/dataset IDs
{
	"id": "[hidden]",
	"name": "Albums",
	"datasets": [
		{
			"id": "[hidden]",
			"name": "group_albums",
			"tables": [
				{
					"name": "SQLServer Docker - SELECT ALBUMS",
					"columns": [],
					"measures": [],
					"isHidden": false,
					"source": [
						{
							"expression": "SELECT ALBUMS"
						}
					]
				},
				{
					"name": "Snowflake - SELECT ALBUMS",
					"columns": [],
					"measures": [],
					"isHidden": false,
					"source": [
						{
							"expression": "SELECT ALBUMS"
						}
					]
				}
			],
			"expressions": [
				{
					"name": "DirectQuery to AS - sql_docker",
					"expression": "[hidden]"
				},
				{
					"name": "DirectQuery to AS - snowflake_music",
					"expression": "[hidden]"
				}
			],
			"upstreamDatasets": [
				{
					"targetDatasetId": "[hidden]",
					"groupId": "[hidden]"
				},
				{
					"targetDatasetId": "[hidden]",
					"groupId": "[hidden]"
				}
			]
		}
	]
}

 

How can i retrieve lineage between tables and expressions/upstream datasets ?

The API keeps the correct order of each items (table 1 == upstreamDataset 1 // table2 == upstreamDataset 2) ?

 

Thank you in advance for your time and assistance!

2 REPLIES 2
lbendlin
Super User
Super User

Not sure what you are trying to achieve here. For all intents and purposes upstream datasets are just that - datasets (SSAS Tabular models).  Doesn't really matter what feeds them.

 

 

You may have more luck using the scanner API.

Worst answer ever. Of course it matters to users what base tables certain reports use as their data source.

 

The simplest answer here if you need to go to the table level is to employ Purview. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.