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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
RevitUser
Frequent Visitor

Create columns based on column value and give value to column from an other column.

Hi Power BI Community,

 

I'm looking to orginise my data by the Issue id at the moment my data looks like this:

RevitUser_0-1699416188950.png

I would like it to look like this: 

 ABC issue_idITP Item No.ITP No.Verification Activity byLot No.
10252a62d - 3e09-4545 - a2cf - 035ec850e4334.5HSEQ - QC - ITP002 - GEO - 20774a3e930f - a6bd - 4757 - b22d - 7caf0fddfa13 
2053c4f89-8a83-4d2a - adb5 - a6496decee371.4HSEQ - QC - ITP002 - GEO - 2077e20c3f7a - fa11-45d3 - a711-6fb8abb7367c 
3057b9582-565d - 4e89 - a7f7 - e8c32655a3632.5HSEQ - QC - ITP002 - GEO - 2077e20c3f7a - fa11-45d3 - a711-6fb8abb7367c0
40724d97e - 294b - 4a11 - a036-5dd09779a0f64.5HSEQ - QC - ITP002 - GEO - 20774a3e930f - a6bd - 4757 - b22d - 7caf0fddfa13 
5Ofbd25e4-4901-4dca - 8f79-8e984b09a8b84.6HSEQ - QC - ITP002 - GEO - 20774a3e930f - a6bd - 4757 - b22d - 7caf0fddfa13 
6131a6e92-5aa2-4c68 - ba22-4de7e23db6e34.5HSEQ - QC - ITP002 - GEO - 2077ed53094e - 1bbe - 4699-8bac - 421711a7be35 

 

Note that there may be more columns added in the future. 

The only way I know to do this at the moment is by a conditional column and then say if column "attribute_title" contains "ITP No." then = "attribute_value" and then go though all the values and clean it all up in the end. 

 

I hope you are able to help thanks.

 

1 ACCEPTED SOLUTION
rubayatyasmin
Super User
Super User

Hi, @RevitUser 

 

do pivot on value col and select the don't aggregate option. 

 

rubayatyasmin_0-1699426547111.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
RevitUser
Frequent Visitor

Thank you very much both of you. The pivot function was what I was looking for! 

rubayatyasmin
Super User
Super User

Hi, @RevitUser 

 

do pivot on value col and select the don't aggregate option. 

 

rubayatyasmin_0-1699426547111.png

 


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

Proud to be a Super User!


wdx223_Daniel
Super User
Super User

NewStep=Table.Combine(Table.Group(YourTable,"issue_id",{"n",each #table({"issue_id"}&[attribute_title],{{[issue_id]{0}}&[attribute_value]})})[n])

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors