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 values within a...
Power Automate
Answered

Format values within a .csv table

(0) ShareShare
ReportReport
Posted on by 132

I've created a Flow with an, "On Power BI button clicked" trigger. 

 

From there, I create an array, append fields to it from Power BI, then create a .csv table.

 

I need to format the first 3 fields within the Append to array action as decimal numbers with 3 decimal places, and the 4th field as a percentage with 1 decimal place.

 

Can anyone recommend the best approach here?

bchager6_0-1639079788211.png

 

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,691 Super User 2025 Season 2 on at

    You can use the formatNumber function in an expression, for example:

     

     

    formatNumber(234.12324322342422,'0.000')
    234.123
    
    formatNumber(0.467, '00.0%')
    46.7%

     

     2021-12-09_21-40-50.png

    Or you can use the the Format number action:

    2021-12-09_21-22-45.png

    2021-12-09_21-22-16.png

    2021-12-09_21-25-54.png


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

  • bchager6 Profile Picture
    132 on at

    Thanks for your feedback. I'm able to format the numbers the way I want to, and the outputs look good, but the circled number below is what's appearing in my csv table, which I create as a step right after the Apply to each below. Do you have any idea why?

    bchager6_1-1639104166473.png

     

    bchager6_0-1639103849951.png

     

  • Verified answer
    Ellis Karim Profile Picture
    11,691 Super User 2025 Season 2 on at

    Please check the following:

    2021-12-10_12-10-30.png

    After formatting the number 1.525306, include the output of the action in the Append to Array, for example:

    2021-12-10_12-06-47.png

    Here is the runtime output of the Format number action returning 1.525:

    2021-12-10_12-08-09.png

    Here is the runtime output of my Append to variable action showing the value of 1.525:

    2021-12-10_12-08-59.png

     


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

  • bchager6 Profile Picture
    132 on at

    @ekarim2020  This has been very helpful. Thank you.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard