web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Format currency inside...
Power Automate
Unanswered

Format currency inside action Create HTML Table

(0) ShareShare
ReportReport
Posted on by 2

Hi 

I am trying to format a string to currency in a "Create HTML Table", using the following flow:

Where 

Value
float('2021.12') -> just for testing
Value_2
concat(string(item()?['Amount']),'€')

 

RicardoaGomes_1-1674413268657.png

 

I got the following result:

RicardoaGomes_0-1674413194867.png

I want to have the 'Value_2' format like the following 961 600,11€, when using the expression: 

formatnumber(float(item()?['Amount']), 'C', 'pt-PT'), I get the following error:
 
"The execution of template action 'Create_HTML_table' failed. The column values could not be evaluated: 'The template language function 'float' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'."
 
Tried several alternatives and type conversion but the error is allways the same.
Is it possible to convert a string to currency inside action 'Create HTML Table' ?
 
Thanks for your support
 

 

 

 

Categories:
I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @RicardoaGomes 

     

    "€" concatenation is not required in this case for formatNumber conversion.

     

    formatNumber Syntax:

    Kaif_Siddique_0-1674416101925.png

     

    Sample flow:

    Kaif_Siddique_1-1674416813935.png

     

    Output:

    Kaif_Siddique_2-1674416848754.png

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

     

    Regards

    Kaif

  • RicardoaGomes Profile Picture
    2 on at

    Hi Kaif,

     

    The concat(string(item()?['Amount']),'€'), was just a workaround because the expression formatnumber(float(item()?['Amount']), 'C'), is not working inside the action 'Create HTML Table' (cloud be because of the formatnumber or the float)

     

    if I do this:

    RicardoaGomes_1-1674419974682.png

    where Value=item()['Amount'], the result is:

    RicardoaGomes_0-1674419879714.png

    If I use Value=float(item()['Amount']) I get the following error:

    "The execution of template action 'Create_HTML_table' failed. The column values could not be evaluated: 'The template language function 'float' was invoked with a parameter that is not valid. The value cannot be converted to the target type."

     

    If I try to use the formatnumber directly (without the float) Value=formatNumber(item()['Amount'],'C2')

    "The execution of template action 'Create_HTML_table' failed. The column values could not be evaluated: 'The template language function 'formatNumber' expects its first parameter to be an integer or a decimal number. The provided value is of type 'String'."

     

    So if item()['Amount'] works ok, why the flot or formatNumber does not?

     

    Thanks for your support

     

     

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @RicardoaGomes 

     

    So basically you are facing two issues:

     

    1.  Why float is not working ?

    - I think item()['Amount'] returns a number value. but float() supports string value as input parameter. so when you write float(item()['Amount']) gives error.

    Kaif_Siddique_1-1674498456458.png

    Use isFloat() expression to check the output value is floating-point number or not.

     

    2.  Why formatNumber is not working ?

    - It supports number but input value is string.

    Kaif_Siddique_0-1674497426904.png

     

    I would suggest check input value datatype. If required, convert the datatype as per requirement.

     

    Regards

    Kaif

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard