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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors