Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ZulCwDgDw4Kh97++uXYebf
Power Automate - Building Flows
Answered

How to put dollar $ sign in a html table which may have some rows are empty.

Like (0) ShareShare
ReportReport
Posted on 13 Feb 2024 12:41:00 by

Hello All, 

 

I would like to ask how to add a dollar sign to an HTML table. I have seen some methods, like formatnumber, on the forum; but, it doesn't work for my flow as my inputs are string. And then I changed it to INT, but it didn't work. 

 

Hope can get some help. Really apprecaiate

 

Flow:

sam123123123_5-1707827750622.png

 

 

 

HTML Table

sam123123123_4-1707827632491.png

 

When use formatnumber, it fails due to string value.

sam123123123_1-1707827543039.png

 

 

and then use "If empty" to bypass it but it also doesn't work.

sam123123123_6-1707827917632.png

 

Finally, when I converted it to INT, it also doesn't work.

sam123123123_7-1707827963871.png

 

 

 

 

 

 

 

 

  • sam123123123 Profile Picture
    on 13 Feb 2024 at 15:09:42
    Re: How to put dollar $ sign in a html table which may have some rows are empty.

    Ok now, it works. Thanks !!

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on 13 Feb 2024 at 15:06:52
    Re: How to put dollar $ sign in a html table which may have some rows are empty.

    Hi @sam123123123 

     

    There is syntax error, you have forgotten to close the if formula. Pls use the below expression:

    if(empty(item()?['outstanding date']),'',concat(item()?['outstanding date'],'Days'))

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • sam123123123 Profile Picture
    on 13 Feb 2024 at 14:58:07
    Re: How to put dollar $ sign in a html table which may have some rows are empty.

    Thanks Manish Solanki,

     

    it works.  Can I ask one more quetsion.  How can I ask add "days" in the outstanding column. 

    like 373Days.

     

    sam123123123_1-1707836182050.png

     

    I use the "concat', but it shows this, and then I use if(empty(item()?['outstanding date']),'',concat(item()?['outstanding date'],'Days'), it doesn't allow me to use this formula. 

     

     

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on 13 Feb 2024 at 14:30:25
    Re: How to put dollar $ sign in a html table which may have some rows are empty.

    Hi @sam123123123 

     

    The input also contains decimal number, so we need to use float function:

    if(empty(item()?['Balance']),'',formatNumber(float(item()?['Balance']),'$#.#'))

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • sam123123123 Profile Picture
    on 13 Feb 2024 at 14:20:47
    Re: How to put dollar $ sign in a html table which may have some rows are empty.

    Hello, Manish Solanki

     

    Thanks for the solution. But, it seems it still has an error .

     

    sam123123123_0-1707834019659.png

     

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on 13 Feb 2024 at 13:45:02
    Re: How to put dollar $ sign in a html table which may have some rows are empty.

    Hi @sam123123123 

     

    Pls use the below expression for 'Balance' column:

    if(empty(item()?['Balance']),'',formatNumber(int(item()?['Balance']),'$#'))

     just replace the column name in above expression for other currency columns.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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 Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 72 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard