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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Jithin00
New Member

To pull row data into columns

Below Table 1 is my Input data and Table 2 is the required output formart  in powerBI where i can filter on Name column.

Tried with unpivot and creating 2 tables for Task's and Feedback but the requrment is to create only 1 table at the output.

 any Alternative methods? 

 

TABLE 1      
NameTask1Task2Task3Feedback1Feedback3Feedback3
Adit9.689goodniceexcelent
Shashank88.910niceVery goodPerfect

 

TABLE 2   
AditTASK19.6good
AditTASK28nice
AditTASK39excelent
ShashankTASK18nice
ShashankTASK28.9very good
ShashankTASK310perfect
1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Jithin00 

you can try this.

1. merget columns

="Task1"&"-"&[Task1]&"-"&[Feedback1]&";"&"Task2"&"-"&[Task2]&"-"&[Feedback2]&";"&"Task3"&"-"&[Task3]&"-"&[Feedback3]

 

1.PNG

 

2. remove useless columns

12.PNG

 

3. split column by delimiter to rows

13.PNG

 

4. split colmn by delimiter again.

 

14.PNG

 

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WckzJLFHSUbLUMwOSFiAWEKfn56cAqbzM5FQglVqRnJqTmleiFKsTrRSckVickZiXDVVtoQdSb2iAUB2WWlSpADUgILUoLTUZqDEWAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, Task1 = _t, Task2 = _t, Task3 = _t, Feedback1 = _t, Feedback2 = _t, Feedback3 = _t]),
#"Added Custom" = Table.AddColumn(Source, "Custom", each "Task1"&"-"&[Task1]&"-"&[Feedback1]&";"&"Task2"&"-"&[Task2]&"-"&[Feedback2]&";"&"Task3"&"-"&[Task3]&"-"&[Feedback3]),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Task1", "Task2", "Task3", "Feedback1", "Feedback2", "Feedback3"}),
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Removed Columns", {{"Custom", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Custom"),
#"Split Column by Delimiter1" = Table.SplitColumn(#"Split Column by Delimiter", "Custom", Splitter.SplitTextByDelimiter("-", QuoteStyle.Csv), {"Custom.1", "Custom.2", "Custom.3"}),
#"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter1",{{"Name", type text}, {"Custom.1", type text}, {"Custom.2", type number}, {"Custom.3", type text}})
in
#"Changed Type"





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@Jithin00 

you can try this.

1. merget columns

="Task1"&"-"&[Task1]&"-"&[Feedback1]&";"&"Task2"&"-"&[Task2]&"-"&[Feedback2]&";"&"Task3"&"-"&[Task3]&"-"&[Feedback3]

 

1.PNG

 

2. remove useless columns

12.PNG

 

3. split column by delimiter to rows

13.PNG

 

4. split colmn by delimiter again.

 

14.PNG

 

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WckzJLFHSUbLUMwOSFiAWEKfn56cAqbzM5FQglVqRnJqTmleiFKsTrRSckVickZiXDVVtoQdSb2iAUB2WWlSpADUgILUoLTUZqDEWAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, Task1 = _t, Task2 = _t, Task3 = _t, Feedback1 = _t, Feedback2 = _t, Feedback3 = _t]),
#"Added Custom" = Table.AddColumn(Source, "Custom", each "Task1"&"-"&[Task1]&"-"&[Feedback1]&";"&"Task2"&"-"&[Task2]&"-"&[Feedback2]&";"&"Task3"&"-"&[Task3]&"-"&[Feedback3]),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Task1", "Task2", "Task3", "Feedback1", "Feedback2", "Feedback3"}),
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Removed Columns", {{"Custom", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Custom"),
#"Split Column by Delimiter1" = Table.SplitColumn(#"Split Column by Delimiter", "Custom", Splitter.SplitTextByDelimiter("-", QuoteStyle.Csv), {"Custom.1", "Custom.2", "Custom.3"}),
#"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter1",{{"Name", type text}, {"Custom.1", type text}, {"Custom.2", type number}, {"Custom.3", type text}})
in
#"Changed Type"





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thankyou for your response, this method works.

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.