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 / Add unit after number
Power Apps
Answered

Add unit after number

(0) ShareShare
ReportReport
Posted on by 140

Hello,

 

I have a calculated textfield. I want to add a unit behind the result. This is my code:

 

 

 

Text(541;"[$-de-DE]##%")

 

 

 

The little h is in Germany the shorten for "hours". If I replace the h through % everything works... But I want to place a "h" there. How is that possible?

 

Thank you!

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @chhe 

    Maybe you can simply add an 'h' after as text like this.

    Text(555,14);"[$-de-DE]##")&"h"

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • chhe Profile Picture
    140 on at

    Hi, this does not work. There appears an error.

  • mdevaney Profile Picture
    29,991 Moderator on at

    @chhe 

    Please share the error.

  • chhe Profile Picture
    140 on at

    Unexpected signs. In the formula, characters are not used as expected.
    For example, the character "\" is not expected after a number: "32\". A space ("32 ") is expected, indicating that only the number 32 is meant, or another number (e.g. "323").

     

     

     
    01.jpg
  • timl Profile Picture
    36,715 Super User 2026 Season 1 on at

    @chhe 

    I suspect this is what @mdevaney meant. This should hopefully fix the error that you're seeing.

     

    Text(555;"[$-de-DE]##") & "h"

     

  • ganeshsanap Profile Picture
    1,555 on at

    @chhe , Which unit you want exactly? Do you want to concatenate "h" to "541"? If Yes, try to use below:

     

     

    Text(541,"[$-de-DE]##")&"h"

    Note:  If comma(,) does not work for you then use semicolon(;) instead of it.

     

  • mdevaney Profile Picture
    29,991 Moderator on at

    @chhe 

    Yes, the answer of @timl is what I meant.  You should accept his response as the solution.

  • chhe Profile Picture
    140 on at

    Hello,

     

    the expression from @timl worked for the first step. But then I can't calculate with this TextInput. Another TextInput multiplies this TextInput with the value from another TextInput. This doesn't work then. Is there a solution to add a "h" and keep the fields as number fields?

  • mdevaney Profile Picture
    29,991 Moderator on at

    @chhe 
    Please start a new thread.  Include a screenshot of your app to show what is required.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @chhe ,

    Do you want to append a 'h' char after a number value, and keep the field as a number field?

     

    Based on the needs that you mentioned, I afraid that there is no way to achieve your needs. I agree with @timl 's solution almost. If you want to append a 'h' char after a number value, please use the following formula:

    Text(514; "[$-de-DE] ##") & "h"

     

    If you want to multiply this TextInput value with the value from another TextInput, please take a try with the following formula:

    Value(Substitute(TextInput1.Text, "h", "")) * Value(TextInput2.Text)

    Note: The TextInput1 represents the Text Input box, where you want to add 'h' unit. The TextInput2 represents another Text Input box, whose value you want to multiply with the TextInput1 value.

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard