Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Pivot column transform - occasional column

Morning all    As context I have used the group by and pivot transformations to summarise which tracks responses to a survey. My issue arises when a particular column is not constant, for example t...
  • artemus's avatar
    4 years ago

    For the pivot step, replace List.Distinct(...) with {"Value1", "Value2", "Value3", ...}

    Replacing each "ValueN" with your values.

     

    Alternativly, you can manually insert any that you are missing by replacing List.Distinct(...) with List.Distinct(... & {"MissingValue1", "MissingValue2", ...})