Forum Discussion

Vetri_BI's avatar
Vetri_BI
Frequent Visitor
2 years ago
Solved

perform a simple matrix addition between two tables using power query

for my business requirement  i need to add two matrix. and get a resultant matrix. i know how to do it if the the number of column is small and manually entering the columns. but for my case the numb...
  • slorin's avatar
    2 years ago

    Hi

     

    = Table.FromColumns(
    List.Transform(
    List.Zip(
    {Table.ToColumns(MatrixA),
    Table.ToColumns(MatrixB)}),
    each List.Transform(
    List.Zip({_{0},_{1}}),
    List.Sum)
    )
    )

    Stéphane