Hi @opit,
Do you want to transfer collection1 to the format of collection2?
I’ve made a similar test as follows:
Create four buttons
Set button1’s OnSelect:
ClearCollect(_testGamyba,{Id: 1,OperacijosId:1,Tipas: "Fasadas",Reiksme: 2},
{Id: 2,OperacijosId: 1,Tipas: "Korpusas", Reiksme: 0},
{Id: 3, OperacijosId: 2,Tipas: "Fasadas",Reiksme: 1},
{Id: 4,OperacijosId: 2,Tipas: "Korpusas",Reiksme: 0},
{Id: 5,OperacijosId: 3,Tipas: "Fasadas",Reiksme: 0},
{Id: 6,OperacijosId: 3,Tipas: "Korpusas", Reiksme: 2},
{Id: 7,OperacijosId: 4,Tipas: "Fasadas",Reiksme: 0},
{Id: 8, OperacijosId: 4,Tipas: "Korpusas",Reiksme: 2}
)
/////create collection1
Set button2’s OnSelect:
ClearCollect(_testGamyba1,AddColumns(_testGamyba,
"Fasadas",If(Tipas="Fasadas",Reiksme,Blank()),
"Korpusas",If(Tipas="Korpusas",Reiksme,Blank())
)
)
////update value to Fasadas、Korpusas column

Set button3’s OnSelect:
ClearCollect(_testGamyba2,GroupBy(_testGamyba1,"OperacijosId","old"))
/////group according to OperacijosId column


Set button4’s OnSelect:
ClearCollect(_testGamyba3,AddColumns(_testGamyba2,
"id",OperacijosId,
"Fasadas",Concat(Filter(old,!IsBlank(Fasadas)),Fasadas&""),
"Korpusas",Concat(Filter(old,!IsBlank(Korpusas)),Korpusas&"")
)
)
/////combine two fields’ value

After these practices, collection1 will be transferred to the format of collection2.
Best regards,
Community Support Team _ Phoebe Liu