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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Border color change on...
Power Apps
Unanswered

Border color change only if value is greater than 1

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi expert,

i want border color to change to red only if value is greater than1 but in my code below am getting red even though value is 1

pokhani_0-1650206505016.png

 

if(Sum(Filter(Forecast,EmployeeName=varRecrd.EmployeeName),Jan)+DataCardValue13.Text>1,Red,Parent.BorderColor)

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    if(Sum(Filter(Forecast,EmployeeName=varRecrd.EmployeeName),Jan)+

     Value(DataCardValue13.Text)>1,Red,Parent.BorderColor)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Still same

    pokhani_0-1650207879942.png

    Delegation warning, sum operator not suppoerted 

    pokhani_1-1650207938982.png

    pokhani_2-1650208093070.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Try this for the BorderColor property 

     

    With(
     {
     fltrd: Filter(
     Forecast,
     EmployeeName=varRecrd.EmployeeName
     )
     },
     If(
     Sum(
     fltrd,
     Jan 
     ) + Value(DataCardValue13.Text) > 1
     Red,
     Black
     )
    )

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    pokhani_0-1650219538359.png

    Still Same

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    It seems to be showing datacardvalue13.Text as the problem now.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    i fixed using 

    iferror

    With({fltrd:Filter(Forecast,EmployeeName=varRecrd.EmployeeName)},IfError(Sum(fltrd,Jan)+Value(DataCardValue13.Text)>1,Red,Black))

    but issue now is when the value ismore than1 the border color is not changing red

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Further, over here the value is

    my splist value is already 1 and when i try to edit this value its already adding the current text value

    pokhani_1-1650249195921.png

     

    pokhani_0-1650249177099.png

     is there any way to use the condition 

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard