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 / I am trying to have ma...
Power Apps
Answered

I am trying to have make a label that will display based on a value that is calculated from a SharePoint column.

(0) ShareShare
ReportReport
Posted on by 7

Specifically, if the "score" is 0-5 I would like a label appear that says "Low-Risk." If the score is 6-10, I would like the label to say "Moderate-Risk", and finally 11 or higher to display "High-Risk." 

 

 
 

Risk Scale Pic.JPG

 

The text function value for the score is Value(Parent.Default). The data type is number. 

The number, or "score" is derived from a calculated column from my data source in SharePoint. 

 

When I try set up a label to display based on the value, this is what I see: Score Val.JPG

 

 

 

 

On DisplayMode:

I have attempted to use If(ScoreVal<=6,true), If(ScoreVal=0,DisplayMode.View). I have tried otheres

Categories:
  • GarethPrisk Profile Picture
    2,828 on at

    ScoreVal is the reference to the control itself. You need to then reference a property of the control.

    • Such as ScoreVal.Text if it's a label control
    • If you need to turn it into a numeric value, then wrap it in a Value function
      • Value ( ScoreVal.Text )

     

    Is this part of a Form? Is it a standalone control?

  • OKCFD607 Profile Picture
    7 on at

    It is on a Display form on a canvas app. 

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Try On the Label Text:

    If(Value(DataCardValue22_1.Text)<=5,"Low Risk",
    If(Value(DataCardValue22_1.Text)>5&&
    Value(DataCardValue22_1.Text)<11,"Medium Risk",
    If(Value(DataCardValue22_1.Text)>=11,"High Risk"
    )))
     
    Where DataCardValue22_1 is the Textbox the holds the Figure
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
     
     
  • OKCFD607 Profile Picture
    7 on at

    Thank YOU!!!!

     

    Worked as intended. 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard