<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Rounding issue with DataFlow Gen2 in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911177#M14384</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1321843"&gt;@mklevemann&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;This usually happens when the destination column (in your Fabric Data Warehouse) is defined with no scale, e.g., DECIMAL(38) which defaults to DECIMAL(38,0). In T‑SQL, if you omit the scale, SQL rounds/truncates the fractional part on insert. Dataflow Gen2 shows the correct floating‑point value in the preview, but when it lands in the warehouse it’s implicitly cast to DECIMAL(38,0), so the decimals are lost.&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;DIV&gt;Alter the Warehouse column to include scale&lt;DIV&gt;&lt;DIV&gt;Pick a scale that fits your business rules (common choices: 2 for money, 4 or more for rates, 6–12 for scientific/FX).&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--   ScriptorStartFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;-- Example: keep up to 10 decimal places&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;ALTER &lt;SPAN&gt;TABLE &lt;SPAN&gt;dbo&lt;SPAN&gt;.YourTable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;ALTER &lt;SPAN&gt;COLUMN &lt;SPAN&gt;YourNumericColumn &lt;SPAN&gt;DECIMAL&lt;SPAN&gt;(&lt;SPAN&gt;38&lt;SPAN&gt;, &lt;SPAN&gt;10&lt;SPAN&gt;) &lt;SPAN&gt;NOT &lt;SPAN&gt;NULL&lt;SPAN&gt;;&lt;SPAN&gt;&amp;nbsp; &lt;SPAN&gt;-- or NULL if applicable&lt;!--   ScriptorEndFragment   --&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps - please appreciate giving a &lt;STRONG&gt;Kudos or accepting as a &lt;STRONG&gt;Solution!&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 01 Jan 2026 13:22:31 GMT</pubDate>
    <dc:creator>deborshi_nag</dc:creator>
    <dc:date>2026-01-01T13:22:31Z</dc:date>
    <item>
      <title>Rounding issue with DataFlow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911009#M14378</link>
      <description>&lt;P&gt;I am loading a fabric data warehouse using Dataflow Gen2 and have run into a weird problem.&amp;nbsp; Whenever I do any floating point math with a couple of columns of the data I'm uploading, I get a good floating point result in dataflow but when it loads the data warehouse it rounds off the decmial portion of the number.&amp;nbsp; &amp;nbsp;I am loading it into a decimal(38) field in the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of the transform statement and you can see the new column does have decimal data in it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mklevemann_0-1767211282600.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1319129iD1DA8F2160828EF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mklevemann_0-1767211282600.png" alt="mklevemann_0-1767211282600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 20:02:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911009#M14378</guid>
      <dc:creator>mklevemann</dc:creator>
      <dc:date>2025-12-31T20:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issue with DataFlow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911144#M14381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1321843"&gt;@mklevemann&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for reaching out to the Fabric Community.&lt;BR /&gt;This behavior occurs because in Fabric Warehouse:&lt;BR /&gt;DECIMAL(38) = DECIMAL(38,0)&lt;BR /&gt;&lt;BR /&gt;When Dataflow Gen2 loads data, decimal scale is not inferred, so a column defined as DECIMAL(38) defaults to scale 0, causing the fractional portion to be silently truncated during load — even though the Dataflow preview shows decimals correctly.&lt;BR /&gt;&lt;BR /&gt;Always specify precision AND scale for decimal columns, or pre-create the table before loading:&lt;BR /&gt;CREATE TABLE dbo.TableName&lt;BR /&gt;(&lt;BR /&gt;invoice_amount_with_net_retaining DECIMAL(38,6)&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;Then load the Dataflow into this table.&lt;BR /&gt;&lt;BR /&gt;Note:&amp;nbsp;The rounding does not happen in Dataflow Gen2 — it happens at insert time in the Warehouse due to&lt;STRONG&gt; implicit DECIMAL(38,0).&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Thanks,&lt;BR /&gt;Cheri Srikanth&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jan 2026 10:56:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911144#M14381</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2026-01-01T10:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issue with DataFlow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911177#M14384</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1321843"&gt;@mklevemann&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;This usually happens when the destination column (in your Fabric Data Warehouse) is defined with no scale, e.g., DECIMAL(38) which defaults to DECIMAL(38,0). In T‑SQL, if you omit the scale, SQL rounds/truncates the fractional part on insert. Dataflow Gen2 shows the correct floating‑point value in the preview, but when it lands in the warehouse it’s implicitly cast to DECIMAL(38,0), so the decimals are lost.&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;DIV&gt;Alter the Warehouse column to include scale&lt;DIV&gt;&lt;DIV&gt;Pick a scale that fits your business rules (common choices: 2 for money, 4 or more for rates, 6–12 for scientific/FX).&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--   ScriptorStartFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;-- Example: keep up to 10 decimal places&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;ALTER &lt;SPAN&gt;TABLE &lt;SPAN&gt;dbo&lt;SPAN&gt;.YourTable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;ALTER &lt;SPAN&gt;COLUMN &lt;SPAN&gt;YourNumericColumn &lt;SPAN&gt;DECIMAL&lt;SPAN&gt;(&lt;SPAN&gt;38&lt;SPAN&gt;, &lt;SPAN&gt;10&lt;SPAN&gt;) &lt;SPAN&gt;NOT &lt;SPAN&gt;NULL&lt;SPAN&gt;;&lt;SPAN&gt;&amp;nbsp; &lt;SPAN&gt;-- or NULL if applicable&lt;!--   ScriptorEndFragment   --&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps - please appreciate giving a &lt;STRONG&gt;Kudos or accepting as a &lt;STRONG&gt;Solution!&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Jan 2026 13:22:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911177#M14384</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-01-01T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issue with DataFlow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911628#M14421</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; &amp;nbsp;My brain must not have been working properly that day.&amp;nbsp; Your solution worked perfectly.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 17:11:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Rounding-issue-with-DataFlow-Gen2/m-p/4911628#M14421</guid>
      <dc:creator>mklevemann</dc:creator>
      <dc:date>2026-01-02T17:11:42Z</dc:date>
    </item>
  </channel>
</rss>

