Hi @MrShivam :
This is easy to implement, but the performance will be worse than Sort or Max. I've made a test for your reference:
1\I assume there is a collection:
ClearCollect(Number,{no:2},{no:6},{no:9},{no:6},{no:12});
2\Add a button and set it's OnSelelct property to:
ForAll(Number,If(no>Last(TheCollection).TheNumber,Collect(TheCollection,{TheNumber:no})));
Set(TheResult,Last(TheCollection).TheNumber)
3\Click the button, the maximum value in the collection 'Number 'will be saved to the variable 'TheResult'
Best Regards,
Bof