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
vehau1
Helper I
Helper I

Transforming table challenge

I need to transform a table to a format that I can work with.

 

My table looks like this after some transformation:

image.png

I need it to be transformed so that it looks like this:

image.png

 

So, what I need is that I want the column header names for all types marked in yellow, to be put in one column, the value of that former columns' row to be placed in its own column ("value"),

and an index, telling me which original row the value came from.

 

Any suggestions? Thanks

 

 

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @vehau1 ,

 

Here is my sample file.1-1.PNG

At first, you need to replace “null” with 0. Then add an index column(Start from 1).
Select “Wellname” and “index” column, click unpivot other columns. Now, you can get the result.1-2.PNG

Best Regards,

Eads

 

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

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

The first image is very small - I cannot read anything there.  Share lesser data in a format that can be pasted in MS Excel and also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-eachen-msft
Community Support
Community Support

Hi @vehau1 ,

 

Here is my sample file.1-1.PNG

At first, you need to replace “null” with 0. Then add an index column(Start from 1).
Select “Wellname” and “index” column, click unpivot other columns. Now, you can get the result.1-2.PNG

Best Regards,

Eads

 

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

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

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