unpivotgoogle-cloud-datapreptrifacta

How to unpivot an unknown number of columns in Google Dataprep / Trifacta?


Trifacta / Google Dataprep allows one to unpivot data, using its Unpivot Transform operator, in which one specify which columns to unpivot at design stage.

How could one say unpivot an unknown number of columns. Here is a data example: enter image description here

The unpivot should start from column '1/22/20', etc.


Solution

  • It is possible to unpivot all columns by using a wildcard *.

    unpivot - wildcard

    Note that it is also possible to specify a range of columns (e.g. Column1~Column20).

    unpivot - range