Search code examples
sqlpython-3.xgoogle-bigquerytransposebigquery-udf

BigQuery Transpose on multiple Columns


Need Help with below Transformation in BigQuery, Here CMPTTR NAME will increase dynamically from 2 to n: enter image description here


Solution

  • Consider below approach

    enter image description here

    if applied to sample data in your question - output is

    enter image description here