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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
bdpr_95
Helper III
Helper III

Direct Query with Snowflake: Decimal Values Always Rounded – How to Show Two Decimal Places?

Hi everyone,

 

I'm currently using Direct Query for a report, but I noticed that the values are always rounded to whole numbers, even when I want them to display with two decimal places.

To investigate, I ran a test comparing Import mode and DirectQuery, and the issue only occurs with DirectQuery. Below is a simple test I did to confirm this behavior.

 

bdpr_95_0-1751556710895.png

 

 

Important Note: My data source is Snowflake.

 

Has anyone experienced this?
Do you know how I can ensure that values retrieved via Direct Query are shown with two decimal places instead of being rounded?

 

Thanks in advance for your help!

1 ACCEPTED SOLUTION
bdpr_95
Helper III
Helper III

Hi @ajaybabuinturi

 

Thank you for your input, but that solution didn’t resolve the issue. I’ve since found the answer in this link.

Another possible fix is to go to the Advanced Editor (in the query where the issue occurs) and simply remove the part that says: Implementation="2.0"

 

Thanks again for your help!

View solution in original post

2 REPLIES 2
bdpr_95
Helper III
Helper III

Hi @ajaybabuinturi

 

Thank you for your input, but that solution didn’t resolve the issue. I’ve since found the answer in this link.

Another possible fix is to go to the Advanced Editor (in the query where the issue occurs) and simply remove the part that says: Implementation="2.0"

 

Thanks again for your help!

ajaybabuinturi
Resident Rockstar
Resident Rockstar

Hi @bdpr_95,
When we are using Direct Query to Snowflake, sometimes infers column data types incorrectly, especially for FLOAT/NUMBER columns with decimals. Specifically in below cases

  1. Power BI interprets Snowflake's NUMBER(10,2) or FLOAT as whole numbers (INT64) in DirectQuery.
  2. Import mode fetches the full precision correctly.
  3. DirectQuery pushes queries to Snowflake and relies on inferred metadata, which may result in decimal truncation or rounding.

Considering these points you can explicitly cast the decimal number in Snowflake query as below.
CAST(column_name AS NUMBER(18,2)) AS column_name or CAST(column_name AS FLOAT) AS column_name

Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.