Forum Discussion
Power BI to Power Automate CSV Export — Number Formatting Lost in Excel
- 1 year ago
Hi mohita98
Thank you for being part of the Microsoft Fabric Community.
In addition to Deku, the proposed approach appears to effectively address your requirements.
Please chek the below points that might resolve your issue:- Use a calculated column or a Power Query column, not a measure, to apply number formatting.
- Example DAX: Formatted_Qty = FORMAT(SUM(Table[Numeric_Col]), "#,##0.000")
- The FORMAT() function returns text, which is what you need for CSV export.
- In Power BI, make sure you're passing this formatted text field to Power Automate instead of the raw numeric field.
- In Power Automate, when using the "Create CSV table" action, choose the "Custom" option instead of "Automatic".
Manually map the column like this:
json
CopyEdit
{
"Qty": "@items('YourLoop')?['Formatted_Qty']"
}
- This ensures the CSV contains values like "1,234.000" as literal text strings.
- Excel will open the CSV and display the value exactly as it is, without converting it to scientific notation or removing commas.
- Avoid passing numeric fields directly into the CSV step, as Power Automate will treat them as numbers and Excel may auto-format them incorrectly.
- If needed, prefix the formatted string with an apostrophe (') to further force Excel to treat it as plain text.
If the above information helps you, please give us a Kudos and marked the Accept as a solution.
Best Regards,
Community Support Team _ C Srikanth.
Hello Deku ,
Thank you for your response! I did try casting the numbers to strings in Power BI using the FORMAT function.
Unfortunately, even after passing the formatted value as a string into Power Automate and generating the CSV, the formatting is still lost when I open the file in Excel. Excel auto-converts the value — removing comma separators or displaying it in scientific notation.
So this approach didn’t fully solve the issue.
Would appreciate any additional suggestions or workarounds!
Thanks again!
Hi mohita98
I had a similar issue where my files was losing the formatting. The way i resolved it is I added a send email action after the file creation step. And add the file as an attachment to the email. The file format i keep csv and that comes through correct.
Here is a link of article i reference - How to Create a CSV Table in Power Automate? [With Examples] - Enjoy SharePoint
Good luck !