Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

Showing Decimals as Percentage in Data Card

Like (0) ShareShare
ReportReport
Posted on 14 Jun 2023 03:02:44 by 13

Hello everyone!

 

I am still relatively new to Power Apps, but it's been a very interesting process and I'm excited about what can be accomplished with this! I am creating a Canvas App that has editable forms for users, but defaults to the existing data in the beginning. This seems to work well so far, except I am unable to format my data cards to show percentages, where the data on the table is a decimal.

 

For example, the field "sales_perc" in my table has the decimal value of 0.09. In my data card's input field, it shows up as 0.09. However, I want it to show 9.00% instead. I've tried multiple ways of doing this, mostly messing around with the Default property (currently ThisItem.cr9f3_sales_perc ). I tried Text(ThisItem.cr9f3_sales_perc*100)&"%", which gets me to "0.09" and Text(ThisItem.cr9f3_sales_perc, "0.00%"), which gets me "0.0009". Just going off how Excel handles formatting, I would think one of these options would work, but that does not seem to be the case. Help!

  • timl Profile Picture
    35,018 Super User 2025 Season 1 on 15 Jun 2023 at 20:38:56
    Re: Showing Decimals as Percentage in Data Card

    You're welcome @powercrusher - glad you got that working.

  • powercrusher Profile Picture
    13 on 15 Jun 2023 at 17:48:49
    Re: Showing Decimals as Percentage in Data Card

    It does actually make a difference! I was making the formula change at the data card level, but this formatting adjustment had to be done at the text input control level (after I removed the data card level default). Thanks!

  • powercrusher Profile Picture
    13 on 14 Jun 2023 at 10:32:51
    Re: Showing Decimals as Percentage in Data Card

    timl,

     

    That's what it is currently set to and doesn't seem to make a difference. I'm almost resigned to leaving it as "9" (after multiplying by 100) and using the label to indicate that it is in %, but it's not a good look. I'm surprised how hard and frustrating it has been to just format a decimal to percentages. Is there anywhere else I should be looking?

  • Verified answer
    timl Profile Picture
    35,018 Super User 2025 Season 1 on 14 Jun 2023 at 10:22:17
    Re: Showing Decimals as Percentage in Data Card

    Hi @powercrusher 

    If you set the Text property of the text input control (rather than the card), does that make a difference?

  • powercrusher Profile Picture
    13 on 14 Jun 2023 at 10:02:27
    Re: Showing Decimals as Percentage in Data Card

    Neither of these options seem to be working. My format was "Number", and I've changed it to "Text" as well, but it is still showing "0.09".

     

    Some of my properties are as follows:

    Data card:

    Datafield: "cr9f3_sales_perc"
    DisplayName: "DataSourceInfo[@Table],DataSourceInfo.DisplayName,"cr9f3_sales_perc")

    Required: false

    Default Value: Text(ThisItem.cr9f3_sales_perc*100)&"%"

    Update: Value(DataCardValue1.Text) --- should this be adjusted as well?

     

    Within the text input:

    Mode: TextMode.SingleLine

    Format: TextFormat.Text

     

    Maybe I'm missing something here???

  • timl Profile Picture
    35,018 Super User 2025 Season 1 on 14 Jun 2023 at 08:27:45
    Re: Showing Decimals as Percentage in Data Card

    Hi @powercrusher 

    As you mentioned, the following should work.

    Text(ThisItem.cr9f3_sales_perc*100) & "%"

    I suspect the problem is that the 'format' property of your text input control is set to 'number'. If you set it to 'text', that might do the trick.

  • developerAJ Profile Picture
    2,855 on 14 Jun 2023 at 03:25:40
    Re: Showing Decimals as Percentage in Data Card

    @powercrusher 

     

    Text(ThisItem.cr9f3_sales_perc)*100&"%"

    Value(ThisItem.cr9f3_sales_perc)*100&"%"

     

    Please click Accept as solution and Thumbs Up. 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.

    You can connect with me on LinkedIn

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard
Loading started