March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Table transformation... the top three rows are how the data appears, I want the data to look like it does below in one row... i assume this is possible, any ideas and help? Thank you so much.
Rank | Name | Rating | Number of ratings | ||
1 | Kentucky Brunch Brand Stout | 4.84 | 615 | ||
1 | Toppling Goliath Brewing Company | 4.84 | 615 | ||
1 | American Double / Imperial Stout / 12.00% ABV | 4.84 | 615 | ||
Rank | Name | Name 2 | Name 3 | Rating | Number of ratings |
1 | Kentucky Brunch Brand Stout | Toppling Goliath Brewing Company | American Double / Imperial Stout / 12.00% ABV | 4.84 | 615 |
Solved! Go to Solution.
Indeed, a little bit from both because this includes some logic I recntly learned from @ImkeF
let Source = Table1, Grouped = Table.Group(Source, {"Rank", "Rating", "Number of ratings"}, {{"Names", each Table.FromRows({[Name]}), type table}}), Reordered = Table.ReorderColumns(Grouped,{"Rank", "Names", "Rating", "Number of ratings"}), ExpandedNames = Table.ExpandTableColumn(Reordered, "Names", Table.ColumnNames(Table.Combine(Reordered[Names]))), RenamedColumns = Table.TransformColumnNames(ExpandedNames, each Replacer.ReplaceText(_, "Column", "Name ")) in RenamedColumns
That's a question for @MarcelBeug or @ImkeF.
Indeed, a little bit from both because this includes some logic I recntly learned from @ImkeF
let Source = Table1, Grouped = Table.Group(Source, {"Rank", "Rating", "Number of ratings"}, {{"Names", each Table.FromRows({[Name]}), type table}}), Reordered = Table.ReorderColumns(Grouped,{"Rank", "Names", "Rating", "Number of ratings"}), ExpandedNames = Table.ExpandTableColumn(Reordered, "Names", Table.ColumnNames(Table.Combine(Reordered[Names]))), RenamedColumns = Table.TransformColumnNames(ExpandedNames, each Replacer.ReplaceText(_, "Column", "Name ")) in RenamedColumns
wow, that is awesome!! It worked brilliantly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
77 | |
58 | |
52 |
User | Count |
---|---|
196 | |
123 | |
107 | |
68 | |
65 |