Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Cyrex
New Member

VALOR DECIMAL FORMATANDO ERRADO

ESTOU COM UMA COLUNA QUE OS VALORES ESTÃO SAINDO ERRADO EM VEZ DE SAIR 16.891,78 ESTÁ SAINDO 1.689,178

JÁ TROQUEI A LOCALIDADE E NÃO FUNCIONOU (USEI A LOCALIDADE DOS ESTADO UNIDOS), ESTOU PUXANDO ESSES DADOS DIRETAMENTE DE UMA VIEW VIA OBDC.

ALGÚEM JÁ PASSOU POR ISSO OU ALGUMA DICA PARA RESOLVER?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Cyrex 

According to your description, you are using ODBC to extract data with data formatting error, you can try to take the following approaches to solve this problem.
1. Use a custom format string to explicitly define the format for decimal values. In your example, you want the number '16.891,78' to be formatted correctly, you can use the format string '0.00'. This will ensure that your decimal values always display at least one digit to the left of the decimal separator and at least two digits to the right.
Related link: Use custom format strings in Power BI Desktop - Power BI | Microsoft Learn

2. If the area setting change did not affect the decimal format, it may be because the system's number formatting settings were not updated or recognized based on the new area setting. Ensure that the system's number format settings are set correctly.

 

3. Review the ODBC data extraction. Since you are extracting data directly from the view via ODBC, make sure that the data format is correctly interpreted during the data extraction process. Sometimes, formatting issues can stem from the way the data is imported into Power BI. When pulling data through ODBC, you can use either the data source name (DSN) or the driver connection string.

Related link: Power BI gateway and Report Builder support for ODBC data sources - Power BI | Microsoft Learn

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @Cyrex 

According to your description, you are using ODBC to extract data with data formatting error, you can try to take the following approaches to solve this problem.
1. Use a custom format string to explicitly define the format for decimal values. In your example, you want the number '16.891,78' to be formatted correctly, you can use the format string '0.00'. This will ensure that your decimal values always display at least one digit to the left of the decimal separator and at least two digits to the right.
Related link: Use custom format strings in Power BI Desktop - Power BI | Microsoft Learn

2. If the area setting change did not affect the decimal format, it may be because the system's number formatting settings were not updated or recognized based on the new area setting. Ensure that the system's number format settings are set correctly.

 

3. Review the ODBC data extraction. Since you are extracting data directly from the view via ODBC, make sure that the data format is correctly interpreted during the data extraction process. Sometimes, formatting issues can stem from the way the data is imported into Power BI. When pulling data through ODBC, you can use either the data source name (DSN) or the driver connection string.

Related link: Power BI gateway and Report Builder support for ODBC data sources - Power BI | Microsoft Learn

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.