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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Make value in a column into columns

Hello this is what my current data looks like: - I need the company name to be in the column - Please help 

COMPANY Number COMPANY Name Account Description Type A Sort Type B FY18  FY 19 FY20  
                                                1ABC Company Non-Guaranteed Revenue GAAP Revenue                 1Display / Video                             16                1                2
                                                1ABC Company Other Revenue GAAP Revenue                 1Other Revenue                               1                3                4
                                                1ABC Company A Expense EBITDA                  5Cost of Revenue                              (9)                3                4
                                                1ABC Company B Expenses EBITDA                  5Cost of Revenue                           201                3                4
                                                1ABC Company Cost of Goods Sold EBITDA                  5Cost of Revenue                              (5)                3                4

 

And I would like it be be like this:

Account Description Type A Sort Type B ABC Company FY18 Amount  ABC Company FY 19 Amount ABC Company FY20 Amount 
Non-Guaranteed Revenue GAAP Revenue                                               1Display / Video                                                   16                              1                                                   2
Other Revenue GAAP Revenue                                               1Other Revenue                                                     1                              3                                                   4
A Expense EBITDA                                                5Cost of Revenue                                                    (9)                              3                                                   4
B Expenses EBITDA                                                5Cost of Revenue                                                 201                              3                                                   4
Cost of Goods Sold EBITDA                                                5Cost of Revenue                                                    (5)                              3                                                   4

 

 

1 ACCEPTED SOLUTION
ERD
Super User
Super User

Hi @Anonymous ,

1. Choose columns with values (FY18 - FY20), click Transform - Unpivot columns (you will get 2 columns: Attribute & Value).

2. Choose Company_name and Attribute columns, click Transform - Merge Columns, choose Space as a Separator (you will now see 2 columns: Merged & Value).

ERD_1-1622793521940.png

3. Choose Merged and Value columns, click Transform - Pivot Column. Values column - Value, Aggregate Value Function - Don't aggregate (Advanced options).

ERD_0-1622793495849.png

 

If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

View solution in original post

2 REPLIES 2
ERD
Super User
Super User

Hi @Anonymous ,

1. Choose columns with values (FY18 - FY20), click Transform - Unpivot columns (you will get 2 columns: Attribute & Value).

2. Choose Company_name and Attribute columns, click Transform - Merge Columns, choose Space as a Separator (you will now see 2 columns: Merged & Value).

ERD_1-1622793521940.png

3. Choose Merged and Value columns, click Transform - Pivot Column. Values column - Value, Aggregate Value Function - Don't aggregate (Advanced options).

ERD_0-1622793495849.png

 

If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Anonymous
Not applicable

Thank you so much @ERD this save me so much headache. 🤗

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors