Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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:
Now I have 1 problem:
- Even though the value columns (from Actual vs. Plan... ) in the Power BI table are correctly shown as percentages, the html table in the mail shows them as long floating point number. Is there an easy way to format them into a percentage value with just 2 digits after the decimal point?
Thank you for your help!
Solved! Go to Solution.
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.
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 23 | |
| 12 | |
| 11 | |
| 11 |