Hello,
I was trying to create a editable grid in Powerapps & I'm stuck with a validation scenario - if for example, I am comparing a column in a grid to another (assume comparing amount in one sharepoint list column to amount in another column) and if the amount does not match, the grid should color the border of another (amount mismatch) dropdown reason column as red wherein the reason needs to be selected for amount mismatch.
And the validation (while submitting the save button) would also need to show that if there is a mismatch of amounts, check whether the mandatory reason dropdown is selected. I was able to do the work with the grid color of the dropdown, but for further validation within the Save Button, I'm not able to work the logic. Any suggestion there as to how can I write the query for the app to validate whether if there is a amount mismatch & if reason for mismatch reason dropdown is blank then throw a notify error?
I am attaching a screenshot of the 3 columns in grid wherein the dropdown - Mismatch reason needs to be validated (updated) based on the condition that the Planned Charge amount is not equal to Charged Amount & pass it as is without the need of dropdown (for rows where planned charge = Charged Amount) if the amount matches.