Forum Discussion

Hambach's avatar
Hambach
Frequent Visitor
4 years ago
Solved

Percentage formatting in Power Automate for HTML table in E-Mail

Hi everyone,   I have a report from which I want to send a table through a direct mail with special formatting and additional content.  For this I have set up the following flow in Power Automate:...
  • v-henryk-mstf's avatar
    4 years ago

    Hi Hambach ,

     

    css can only control the style of the page. For preserving decimal places, it can only be converted by set in powerbi. Or get the dom object in the js file and try the following formula to convert it. 

    in desktop:

     

     

    in js:

    var num =2.446242342;
    num = num.toFixed(2); // the output is 2.45


    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.