• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Power Query Doubt

Dear Excel Wizards,

I want to get output from Power Query. Actual data size runs into 5000+ rows. I got output using Excel Functions. But file was responding slowly. Kindly help.

Regards,
Suresh M
 

Attachments

  • Excel Query -1.xlsx
    11.2 KB · Views: 3
First try

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    Group = Table.Group(Source, {"Name"}, {{"All", each Table.Transpose(Table.SelectColumns(_,"Account No")), type table}}),
    Expand =
    let
    Cols = Table.ColumnNames(Table.Combine(Group[All])),
    NewCols = List.Transform(Cols, each "Account Nr " & Text.From(List.PositionOf(Cols, _)+1)),
    Expanded  = Table.ExpandTableColumn(Group, "All", Cols, NewCols)
    in
    Expanded
in
    Expand
 
Back
Top