Hi @QQY
To achieve that you can use the LookUp function.
For example if this is my collection:
//Create a collection
ClearCollect(myCars23,
{SerialNo:"6453", Year: 2016, Make: "Toyota", Model: "Corolla"},
{SerialNo:"8946",Year: 2014, Make: "Honda", Model: "Civic" },
{SerialNo:"3571",Year: 2019, Make: "Toyota", Model: "Camry" },
{SerialNo:"1165",Year: 2018, Make: "Honda",Model: "Civic"},
{SerialNo:"8973",Year: 2018, Make: "Hyundai", Model: "Elantra"},
{SerialNo:"4529",Year: 2020, Make: "Honda", Model: "Accord"}
);
//Get cell from 1st matching row
Set(
mySolution23a,
LookUp(myCars23,SerialNo="8973", Model)
);
Source: Blog post
If you want to loop through this is a example:
ForAll(collectionA,
Collect(collectValues,
{Value: LookUp(record, Name = ThisRecord.Value)}
)
);
If you have any questions or feedback, please let me know. Have a great day! 😊
-----------------------
PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube| [My blog]
I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻