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 / How to add % Sign agai...
Power Apps
Answered

How to add % Sign against column field in model-driven tables

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to add the either sign %  or $. I have used the data type of columns as decimal number but how to embed the percentage sign against every value same like this:

 Screenshot 2022-01-17 110454.png

Please Reply🙏

Thanks 🙂

I have the same question (0)
  • Verified answer
    Ram Prakash Duraisamy Profile Picture
    5,877 Super User 2026 Season 1 on at

    Hello @Tiksha,

     

    Hope you are doing good, As per OOB Behavior if you are using CURRENCY field it will automatically show $ or any other Currency based on which you are showing. For Showing % there is no OOB Behavior available. 

     

    But you can write JS to change the LABEL of the TEXT BOX dynamically

     

    function changePercentageValues(executionContext){
    var formContext = executionContext.getFormContext();
    if(CHECK FIELD IS PERCENTAGE = %){
    formContext.getControl("FIELDLOGICALNAME").setLabel("% FIELD LABEL");
    }
    else{
    formContext.getControl("FIELDLOGICALNAME").setLabel("CURRENCY FIELD LABEL");
    }
    }

     

    But the Only Problem here is we can't get the same Names in VIEWS/Sub-Grid or Advanced Find.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the solution @rampprakash 

    function onChangeAdjustmentFactor(executionContext) {
     var formContext = executionContext.getFormContext();
     formContext.getAttribute("crcd7_adjustmentfactorforworkhours").setValue("%")
     if (formContext.getAttribute("crcd7_adjustmentfactorforworkhours").getValue() != null) {
    
    
     formContext.getAttribute("crcd7_adjustmentfactorforworkhours").setValue(formContext.getAttribute("crcd7_adjustmentfactorforworkhours").getValue() + "%")
     }
     else {
     formContext.getAttribute("crcd7_adjustmentfactorforworkhours").setValue(null);
     }
    }

    This solution provided by you, also worked for me.

     

     Also I have configured another way as well that we can use, which is using pcf component. Using this, we also not need to change datatype of column. But this worked on Forms not on Views

    https://pcf.gallery/prefix-suffix-control/

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard