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 / Setting value to be ex...
Power Apps
Answered

Setting value to be exactly at 100%

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, 

 

I trying to set a condition on one of my data card to be exact at 100%. The data field is a pre-calculated. 

 

My code is If(Value(Total_Percentage_17.Text)=100,false,true) in the required section.  But my submit button still seems to be pop out. 

 

Any help on this?

 

benyen_1-1649647960208.png

 

benyen_2-1649648109503.png

 

 

benyen_0-1649647947522.png

 

Categories:
  • Ashwin7104 Profile Picture
    671 on at

    Hi @Anonymous ,

     

    I suppose you're attempting to display the submit button while the data card is at 100%. If that's the case, try the approach listed below. Then in visible property of the button, add below code

     

     

    If((Value(Total_Percentage_17.Text)*100) = 100,true,false)

     

     

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Anonymous ,

    Two things - you only need

    Value(Total_Percentage_17.Text) <> 100

    but you also have a percentage sign in the box, so try this

    Value(
     Substitute(
     Total_Percentage_17.Text,
     "%",
     ""
     )
    ) <> 100

    Also are you sure you want it to be true when the value is not 100%

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Ashwin, 

     

    Thanks, it works, but i have a slight problem, as my visible properties has already have another IF function 

     

    If(Form.Mode = FormMode.Edit,true,Form.Mode = FormMode.New,true,false))

    how do you combine both this code that you gave in the same visible properties

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Warren, 


    Is this also in the visible property? If so, like replied to ashwin, I have an existing IF code in there hence I'm not sure how to combine both IF statement into the property. I have tried ";" but it doesn't work

  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Anonymous ,

    You should need

    (YourFormName.Mode = FormMode.Edit || YourFormName.Mode = FormMode.New) &&
    Value(
     Substitute(
     Total_Percentage_17.Text,
     "%",
     ""
     )
    ) <> 100

    There is no need for the If/true/false - if the statement above is true, then the Visible will be true. - I have a small blog article on this.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard