Skip to content
Advertisement

Modify data in a specific format

I want to represent data in a specific format. Currently, the data looks like below-

I want to represent it in the below format-

Is is there a way to get the data in this format?

Advertisement

Answer

You want to unpivot and filter. Here is a BigQuery’ish way to do this:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement