web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : mEAKbLHsJYvQmyNcwu9nwc
Power Apps - Building Power Apps
Unanswered

Data Validation on DataTable

Like (0) ShareShare
ReportReport
Posted on 23 Mar 2023 18:59:43 by 104

Hi All,

 

My Datasource is- Sharepoint 

I am using Datatable to display few  records in powerapps front screen after updating the records via excel upload . In which i have few columns with datatype "Single Line of Text". 

 

Column 1 - Single Line of Text

Column 2 - Single Line of Text

 

Result of these two columns should be "Yes/No".

 

I need to set a data validation wherever user mentioned other values than "Yes/No" while updating the records. User is not going to update the records one by one. 100+ rows of records updated in excel format and data uploaded using powerapps, power automate flow. For this reason only, keeping the column data type as "Single line of Text". 

 

Here my query is to do the data validation on these columns. Instead of "Yes/No" if any of the column is having incorrect data, then different color code should be applied to the particular row to indicate the user that, format of data is incorrect. 

 

I tried to keep the validation check on "On Select" of particular column in datatable. But unable to find solution. Could anyone please help.

 

 

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on 23 Mar 2023 at 20:02:35
    Re: Data Validation on DataTable

    If you use are using a gallery then each row of the data source will be its own row in the gallery and you can use something like this on the bg fill or border color for that item:

    If(Lower(ThisItem.Col1Value) <> "yes" Or Lower(ThisItem.Col1Value) <> "no", Color.Red, Color.White)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 733 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 532 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete