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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
nicolas1
New Member

direct query change alone a type of field float to integer.

Hello everybody,

In my data base mondodb, i've got several fields with data type float, when i import in power bi , direct query change the type of  fields in integer,it rounds the values, 0.5 becomes 0, 0.7 becomes 1 etc ....., excepting one field who all values are correct, . I'm try to change in decimal, changement it'sok, but  values don't change. Have you got an idea about this?

Thanks

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @nicolas1,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @nicolas1,

Could you have tried modify the 'Data Type' in the query editor?

1.PNG

If it still could not work after you have applied it, could you please try to modify the format in 'Model ribbon':

2.PNG

If the problem still persists, could you please share the row data file if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors