Hi @ishani_m ,
Could you describe more clearly about the detailed Validation for the gallery?
How do you set the gallery?
If you want to Validate statically for each rows, you could directly use AddColumns function in the gallery items.
The AddColumns function adds a column to a table, and a formula defines the values in that column. Existing columns remain unmodified.
The formula is evaluated for each record of the table.
Here's a doc about this function for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-table-shaping
If you want the Validation be triggered by a button, you could insert a label inside the gallery.
Use formula about Match function and use "ThisItem.fieldname". It will evaluated for each record of the table.
Set the label's Text like this:
If(var,Match(...))
Set the button's OnSelect:
Set(var,true)
Then when you click the button, the label will display the validation result.
Here's a doc about Match function for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-ismatch
Best regards,