Power Apps: Format Text as Currency
Power Apps
15. Juli 2026 07:13

Power Apps: Format Text as Currency

von HubSite 365 über Microsoft

Software Development Redmond, Washington

Microsoft pro guides Power Apps and Power Platform tips to convert text to currency with variables forms and functions

Key insights

  • Native limitation: Power Apps does not natively format a text input as currency while the user types because the control’s Format accepts only TextFormat.Number or TextFormat.Text.
    Use this workaround to show formatted currency after input changes.
  • Core workaround: Capture raw text, convert it to a number with Value(), format it with Text(), and store the result in a context variable (e.g., ctxFormattedCurrency).
    Trigger this conversion on the control’s OnChange event and show the variable via the control’s Default.
  • How functions work: Value(text) turns user text into a numeric value; Text(number, formatString) converts the number into a currency string (for example use a locale pattern like [$-en-US]$#,##0.00).
    Use UpdateContext or Set to save the formatted string for the input to display.
  • Simple implementation: Set the input’s format to TextFormat.Text so users can type freely. On change, update the context variable with the formatted currency. In Default, show the variable if present, otherwise preserve raw input.
    Reset the variable on form submit or reset to avoid stale values.
  • Locale flexibility: Change the format string locale token (for example en-US, de-DE, en-GB) to match region-specific currency, separators, and decimals.
    This supports international apps and consistent display across new and existing records.
  • Best practices: Keep raw numeric values in your data model for calculations and validation, use the formatted string only for display, and handle blanks or invalid input (e.g., IsBlank) before formatting.
    Apply the pattern on forms and data-entry screens to improve readability and reduce entry errors.

Overview of the video

The YouTube video, published by Microsoft, demonstrates a practical technique for formatting text input as currency inside Power Apps. In the walkthrough, community pro Warren Belz explains a community-driven workaround that combines variables, form logic, and built-in functions to present numbers as currency while preserving the user's ability to type freely. Consequently, the video targets makers who need readable financial input without native live-currency formatting support.
Moreover, the presentation emphasizes real-world scenarios, such as data-entry forms and approval flows, where immediate clarity reduces errors and speeds decision-making. The video is concise, hands-on, and designed for Power Platform users who want a solution they can apply right away.


How the approach works

At its core, the method uses Power Fx expressions to capture raw text, convert that text into a numeric value, then render a locale-aware currency string. Specifically, the tutorial relies on Value() to parse the typed text into a number and on Text() to format that number as currency such as $1,234.56. Since a control cannot self-reference its own value for formatting, the solution saves the formatted result into a context variable like ctxFormattedCurrency.
Then, the app uses that variable in the control’s Default property and updates it on the control’s OnChange event so the formatted currency appears after the user finishes editing. Thus, the technique simulates real-time feedback without interfering with text entry during typing.


Step-by-step implementation explained

First, set the text input’s format to TextFormat.Text so users can enter numbers and symbols without blocking input. Next, trigger formatting in the control’s OnChange property by converting the input text with Value() and passing the result to Text() with a locale-specific format string, then store it with UpdateContext.
Finally, configure the input’s Default to show the context variable when it exists and to show the raw text otherwise, and reset that variable on form submission or reset events. This sequence ensures consistent presentation across new and existing records while preserving raw input until the user finishes editing.


Tradeoffs and practical challenges

Although this workaround improves readability, it introduces tradeoffs that makers must weigh. For example, formatting on OnChange means the user sees raw input while typing and formatted text only after leaving the field, which some users may find less immediate than true per-keystroke formatting. Conversely, trying to format per keystroke can disrupt input, prevent entry of special characters, or create cursor-position problems.
In addition, localization adds complexity because different locales use different decimal and thousands separators; therefore, you must choose the correct format string and parsing method to avoid misinterpretation. Finally, integrating this pattern with complex forms, validation rules, and external data sources requires careful handling of resets, data types, and performance to avoid inconsistent states.


Best practices and recommendations

To reduce friction, the video recommends clear user guidance and predictable behavior: preserve raw input during typing, apply formatting on blur or change, and use consistent variable resets when saving or cancelling. Moreover, test the input with different regional formats and with unusual user entries, such as negative numbers and currency symbols, to ensure robust parsing and error handling.
Developers should also consider accessibility and automation: ensure screen readers read the field correctly and that programmatic updates do not confuse automated tests or flows. Overall, the pattern works best when you prioritize clarity and data integrity, while accepting the modest compromise that formatting appears after the user finishes typing.


Conclusion and when to use this pattern

In summary, the Microsoft video led by Warren Belz offers a pragmatic and easy-to-implement solution for presenting currency in Power Apps. Therefore, makers building finance, invoicing, or data-entry apps will find this approach useful when they need readable currency without blocking raw input during typing. The technique balances user experience and technical constraints, enabling cleaner presentation while keeping input flexible.
As a final note, apply this pattern when you control the form logic and can manage resets and validation centrally; however, if you require true per-keystroke formatting, prepare for additional complexity and potential input issues. Overall, the video provides a clear path for improving numeric input presentation while outlining the tradeoffs and implementation details developers must manage.


Power Apps - Power Apps: Format Text as Currency

Keywords

power apps currency formatting, powerapps format number as currency, format text input as currency power apps, power apps number formatting tutorial, powerapps formattext currency, power apps currency input mask, powerapps formatnumber guide, power apps price input formatting