This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
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 ID | Project ID | Expected Result |
| 1239498 | 1022 | 1239498 |
| 1022 | 1239498 | |
| 1239498 | 1809 | 1239498 |
| 1239495 | 10566 | 1239495 |
| 1239446 | 1265 | 1239446 |
| 1265 | 1239446 | |
| 1265 | 1239446 |
Solved! Go to Solution.
@Anonymous
Create a copy of the table without the blanks as below.
Then merge the original table and duplicated table based on project id and expand the task id as new column.
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
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 ID | Project ID | Expected Result |
| 1239498 | 1022 | 1239498 |
| 1022 | 1239498 | |
| 1239498 | 1809 | 1239498 |
| 1239495 | 10566 | 1239495 |
| 1239446 | 1265 | 1239446 |
| 1265 | 1239446 | |
| 1265 | 1239446 |
Try this. In Power Query right click over the Task ID column header and Fill then Down
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.
Then merge the original table and duplicated table based on project id and expand the task id as new column.
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
Hello @Anonymous
WIll a project id have multiple task id?
Thanks,
Naveen
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 20 | |
| 20 |