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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

making sure the Lineage is updated once a query is modified

Hello,

I'm currently having an issue with an update to do on multiple dataflows.

Let's say I currently have this chaining of dataflows :

A -----> B ------> C

I would like to replace A with A2 (and have A2 -------> B -------> C), so I manually replace any references to the dataflow A in B with references to A2. But once the modification and refresh done, the lineage remains the same !!

 

To have the correct lineage, I have to add A2 as a datasource manually, then modify the queries using it, and that takes a lot of time.

 

Is there a simpler way to get the correct lineage in this case ?

 

Thansk in advance

1 ACCEPTED SOLUTION
rubayatyasmin
Super User
Super User

Hi, @Anonymous 

 

I was facing the same issue a couple of days ago. The only solution I found is to rebuild the flow. Otherwise the lineage remains same. 

 

So, I exported all the DF's and deleted older DF's then I imported again. it didn't took that much time. If you have so many reportes incorporated to the DF's, it will be time consuming at first. But the lineage will be correct. 

 

If you find any other way other than rebuild let me know here. 

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


View solution in original post

3 REPLIES 3
rubayatyasmin
Super User
Super User

Hi, @Anonymous 

 

I was facing the same issue a couple of days ago. The only solution I found is to rebuild the flow. Otherwise the lineage remains same. 

 

So, I exported all the DF's and deleted older DF's then I imported again. it didn't took that much time. If you have so many reportes incorporated to the DF's, it will be time consuming at first. But the lineage will be correct. 

 

If you find any other way other than rebuild let me know here. 

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Anonymous
Not applicable

Hello,

This worked for me, and it seems to be the simplest approach. To replace the reference I had to :

1 - export the flow as json (let's call it B.json)

2- open B.json, replace the flowID of A with the one for A2

3- import B.json (it will be called B(2))

4- open B(2), copy all the queries

5- open B, delete all the queries then hit Ctrl + V to replace them with queries from B(2)

6- save and refresh B

7- check the lineage then remove B(2)

 

Thanks again,

ChielFaber
Solution Supplier
Solution Supplier

One way to change this is to use parameters for the dataflow sources.

First create two parameters for your workspaceID and dataflowID:

parameters.PNG

 

Then write the following m-code:

source dataflow.PNG

 

let
    GetWorkspaceDataflowEntity = (workspaceId as text, dataflowId as text, entityName as text) =>
        let
            Source = PowerBI.Dataflows([]),
            WorkspaceNav = Source{[workspaceId = workspaceId]}[Data],
            DataflowNav = WorkspaceNav{[dataflowId = dataflowId]}[Data],
            EntityNav = DataflowNav{[entity = entityName]}[Data]
        in
            EntityNav,

    WorkspaceId = pm_workspaceId,
    DataflowId = pm_dataflowId,
    EntityName = "TableName",
   
    Result = GetWorkspaceDataflowEntity(WorkspaceId, DataflowId, EntityName)
in
    Result

TableName is the name of the dataflow your want to load. When you want to change the source dataflow you can just change the parameter value.
 
Hope this helps!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.