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 / Error patching a curre...
Power Apps
Answered

Error patching a currency format to dataverse

(0) ShareShare
ReportReport
Posted on by 62

Hello there!
I'm trying to patch some data to my dataverse, but the collum is type Currency, and I can't find any methods to format the text to an acceptable format. Does anyone have a solution for this?

N1loCan_0-1685105986081.png

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @N1loCan - Why are you setting a format for the Currency column in the Patch?

     

    You only need to Patch the Value and configure the Currency by navigating to Advanced Settings > Settings > Administration > System Settings and then in the General tab, look for Set the currency display option.

     

    Amik_0-1685136456937.png

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution

    If you like my response, please give it a Thumbs Up.

     

  • N1loCan Profile Picture
    62 on at

    WHere do i find these settings?

  • N1loCan Profile Picture
    62 on at

    N1loCan_1-1685380883960.png


    I used the value format, but it won't work

  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    Hi @N1loCan ,

     

    Sorry but I do not understand the language of your screenshot.

     

    Forgive me if some of this comes across as patronising but I will need to provide you with some explanation.

     

    A field, or column or attribute type determines how and what acceptable values are stored in it. A String field type will only accept text, Date will only accept date, and a Number column will accept a number value (for example an integer or a decimal). This is a basic concept for any database (Excel, Google Sheets, SharePoint, Access, Dataverse, SQL etc).

     

    You have a Currency field in Dataverse which only accepts a number, and you’re trying to force it to accept both a value (the number) and a string (the currency symbol).

     

    When we create a currency column, Dataverse automatically creates two additional columns.

     

    1. The first column is the currency we already created and holds the value of your currency amount.

    2. The second column is a Lookup to the Currency table (a system table). Meaning we then know what currency our value is in. The default name of the Lookup field is "Currency".

     

    Amik_0-1685395439676.png

     

    3. Lastly, a decimal column called Exchange Rate provides the exchange rate for a selected currency associated with the table with respect to the base currency. 

     

    Amik_1-1685395462956.png

     

    Back to the problem. If you’re using a Model Driven App, you can configure the Currency using the settings I already outlined in my previous reply.

     

    But I what I think you’re trying to do is Patch a number into a Dataverse Currency column, and then display that number in a currency format in your Canvas App, e.g. onto a Label.

     

    Firstly, use the basic example below to Patch a Number value into the currency column:

     

     

    Patch(
     'Your Data',
     LookUp(
     'Your Data',
     'Your Unique ID'= "Some ID"
     ),
     {
     'Your Currency Column': Value(Text("10"))
     }
    )

     

     

    Next, suppose you have a Label and you want to display the saved value together with the Currency Symbol. Because a Currency Lookup column is automatically added to our Dataverse table (and therefore our Table is now related to the Currency table), we can return Currency Symbol and concatenate it with our Currency Value:

     

     

    ThisItem.Currency.'Currency Symbol' & Text(ThisItem.'Your Currency Column',"#,##0.00")

     

     

    I hope this helps.

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution

    If you like my response, please give it a Thumbs Up.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard