Forum Discussion

shparvez's avatar
shparvez
Copper Contributor
Oct 26, 2023

Pivot a row for two columns

Hello all,

Can someone plese help me with the code how to get from Table 1 to Table 2 please?  Pivot fucntion is needed but i cant figure out exact code.  Thank you in advance.

 

Table 1:

productCountryColorValue
fruitUKredb1
fruitUSAblueC3
treeUKgreenZ5
treeUSAyellowK9

 

Table 2:

productUKUSAUKUSA
fruitredb1blueC3
treegreenZ5yellowK9
  • Arshad440's avatar
    Arshad440
    Brass Contributor
    Can you explain the Logic behind this, it doesn't make any sense

Resources