Hi @Anonymous ,
I am still confused about your question. I assumed a collection and tested it.
1\ Add a button control and set its Onselect property to:
ClearCollect(TestCollection,{pricetype:"A",price:100,qty:2,total:200},{pricetype:"B",price:200,qty:5,total:1000})

2\ Add a combo box control and set its Items property to:
TestCollection.pricetype
3\ Add another gallery control and set its Items property to:
RenameColumns(DropColumns(AddColumns(AddColumns(TestCollection,"price2",LookUp(TestCollection,pricetype=ComboBox1.Selected.pricetype).price),"total2",price2*qty),"price","total"),"price2","price","total2","total")
4\ The result is as follows:


Is this your requirement?
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.