cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
BlueWhite111
Post Patron
Post Patron

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

@BlueWhite111 

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
BlueWhite111
Post Patron
Post Patron

 
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 

BlueWhite111
Post Patron
Post Patron

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

@BlueWhite111 

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
Super User
Super User

Hello @BlueWhite111 

WIll a project id have multiple task id?

 

Thanks,

Naveen

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors