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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

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.

Top Solution Authors
Top Kudoed Authors