Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
I have a problem trying to export data from Power BI into Excel where the original values are like 4.547132009% but all I get in Excell is 4.500000000% and this creates a problem where the column of percentages doesn't add up to 100% anymore. Are there any ways to work around this issue please? TIA.
I have tried both showing data in Power BI as % of column total and I also created a measure to calculate the column total; the end result is the same.
Hi @davinci_cat
check below steps
The issue you're experiencing where the percentages are truncated when exporting data from Power BI to Excel is likely due to the formatting settings in Excel. By default, Excel may round the displayed percentages for simplicity. To work around this issue and ensure the exported percentages retain their precision, you can follow these steps:
Method 1: Format the Column in Excel
After exporting your data to Excel, select the column with the percentages.
Right-click on the selected column and choose "Format Cells."
In the "Format Cells" dialog box, go to the "Number" tab.
In the "Category" list on the left, select "Percentage."
Adjust the number of decimal places to the desired precision (e.g., 9 decimal places).
Click "OK" to apply the formatting.
This will display the percentages in Excel with the desired precision.
Method 2: Use Power Query to Export Data
In Power BI, you can use Power Query to export the data to Excel while specifying the desired data type for the percentage column.
Load your data into Power Query by clicking "Edit Queries" in Power BI.
In Power Query, select the percentage column, and in the "Transform" tab, change the data type to "Decimal Number" with the desired number of decimal places.
After making this change, close and apply the changes in Power Query.
Now, when you export this data to Excel, it should maintain the desired precision for percentages.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.