Forum Discussion

AndrewPF's avatar
AndrewPF
Helper V
2 years ago
Solved

coalesce across rows, not columns

My data consists of (1) assessment ID (2) assessment name (3) question number (4) target score and (5) actual score.    I have some reassessments on which only specific questions have been answered...
  • dufoq3's avatar
    dufoq3
    2 years ago

    AndrewPF it should work. Edit GroupedRows step to something like this:

    GroupedRows = Table.Group(ReplaceNotes, {"business ID" ,"Question no."}, {{"Detail", each _, type table}, {"Result", each Table.LastN(_, 1) }}),

     

    If it won't work just send new sample data and I'll try to help you.