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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Power Query to copy down Task ID value when Project ID values are consective

Hi Experts

 

Not sure on how to do the following step in Power Query, but i need to copy down the Task ID value where we have consective project id value.  See sample data with expected end result. where the Project ID is not consective leave Task ID AS IS

Task IDProject IDExpected Result
123949810221239498
 10221239498
123949818091239498
1239495105661239495
123944612651239446
 12651239446
 12651239446
1 ACCEPTED SOLUTION

@Anonymous 

Create a copy of the table without the blanks as below.

NaveenGandhi_0-1685710984625.png

Then merge the original table and duplicated table based on project id and expand the task id as new column.

NaveenGandhi_1-1685711059388.png

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

 

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

 
Hi Experts

 

Not sure on how to do the following step in Power Query, but i need to copy down the Task ID value where we have consective project id value.  See sample data with expected end result. where the Project ID is not consective leave Task ID AS IS

Task IDProject IDExpected Result
123949810221239498
 10221239498
123949818091239498
1239495105661239495
123944612651239446
 12651239446
 12651239446

Try this.  In Power Query right click over the Task ID column header and Fill then Down 

Anonymous
Not applicable

Muliptle same as shown but the same Project ID cannot have two different Task ID's

@Anonymous 

Create a copy of the table without the blanks as below.

NaveenGandhi_0-1685710984625.png

Then merge the original table and duplicated table based on project id and expand the task id as new column.

NaveenGandhi_1-1685711059388.png

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

 

 

NaveenGandhi
Memorable Member
Memorable Member

Hello @Anonymous 

WIll a project id have multiple task id?

 

Thanks,

Naveen

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.