<?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 Time column is throwing Data Type Error in Power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Time-column-is-throwing-Data-Type-Error-in-Power-BI/m-p/5125975#M64649</link>
    <description>&lt;P&gt;I am using direct query to connect to my table in SQL Server that has the following columns -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Employee ID&amp;nbsp; Product&amp;nbsp; Date(Date/Time) Time(Time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table has around 5000 records. When I use Table visual to see the data, it loads&amp;nbsp; properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NaqNaq_1-1772703945086.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1328886iBAF60697ECA9EEFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NaqNaq_1-1772703945086.png" alt="NaqNaq_1-1772703945086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I scroll down to see the end rows...somewhere in the middle....it breaks and I get the following error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NaqNaq_0-1772703721718.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1328885i34907585301C3AFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NaqNaq_0-1772703721718.png" alt="NaqNaq_0-1772703721718.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This visual works perfectly if I dont add the time column and I am able to scroll through all 5000 records successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how time is stored is my database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date (Date/Time) and Time (Time)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NaqNaq_2-1772704097715.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1328887iC9804F2FCC710305/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NaqNaq_2-1772704097715.png" alt="NaqNaq_2-1772704097715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how things are set in power bi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NaqNaq_3-1772704182637.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1328888iB0441191D201B539/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NaqNaq_3-1772704182637.png" alt="NaqNaq_3-1772704182637.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried changing the format as well but nothing works. This issue only happens when I scroll through the records. and it happens only when time column is there in the visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your guidance will be appreciated. Thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2026 09:54:12 GMT</pubDate>
    <dc:creator>NaqNaq</dc:creator>
    <dc:date>2026-03-05T09:54:12Z</dc:date>
    <item>
      <title>Time column is throwing Data Type Error in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Time-column-is-throwing-Data-Type-Error-in-Power-BI/m-p/5125975#M64649</link>
      <description>&lt;P&gt;I am using direct query to connect to my table in SQL Server that has the following columns -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Employee ID&amp;nbsp; Product&amp;nbsp; Date(Date/Time) Time(Time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table has around 5000 records. When I use Table visual to see the data, it loads&amp;nbsp; properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NaqNaq_1-1772703945086.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1328886iBAF60697ECA9EEFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NaqNaq_1-1772703945086.png" alt="NaqNaq_1-1772703945086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I scroll down to see the end rows...somewhere in the middle....it breaks and I get the following error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NaqNaq_0-1772703721718.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1328885i34907585301C3AFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NaqNaq_0-1772703721718.png" alt="NaqNaq_0-1772703721718.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This visual works perfectly if I dont add the time column and I am able to scroll through all 5000 records successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how time is stored is my database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date (Date/Time) and Time (Time)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NaqNaq_2-1772704097715.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1328887iC9804F2FCC710305/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NaqNaq_2-1772704097715.png" alt="NaqNaq_2-1772704097715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how things are set in power bi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NaqNaq_3-1772704182637.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1328888iB0441191D201B539/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NaqNaq_3-1772704182637.png" alt="NaqNaq_3-1772704182637.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried changing the format as well but nothing works. This issue only happens when I scroll through the records. and it happens only when time column is there in the visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your guidance will be appreciated. Thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 09:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Time-column-is-throwing-Data-Type-Error-in-Power-BI/m-p/5125975#M64649</guid>
      <dc:creator>NaqNaq</dc:creator>
      <dc:date>2026-03-05T09:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Time column is throwing Data Type Error in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Time-column-is-throwing-Data-Type-Error-in-Power-BI/m-p/5126117#M64653</link>
      <description>&lt;P&gt;Hi! This is a known issue with the SQL Server Time data type in DirectQuery mode. Power BI doesn't have a native Time data type — it maps it to Duration internally, and when the table visual paginates (fetches the next batch of rows as you scroll), the query it generates can sometimes produce a type mismatch for certain Time values, especially anything involving midnight or values close to 24-hour boundaries.&lt;BR /&gt;The cleanest fix is to cast the Time column to a string on the SQL Server side, either in a view or a calculated column:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sql-- Create a view or use this in your query&lt;BR /&gt;SELECT&lt;BR /&gt;EmployeeID,&lt;BR /&gt;Product,&lt;BR /&gt;Date,&lt;BR /&gt;CONVERT(varchar(8), Time, 108) AS TimeFormatted -- returns HH:MM:SS&lt;BR /&gt;FROM YourTable&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then connect Power BI to that view/column instead. You lose the ability to do time arithmetic directly in DAX, but for display purposes it works perfectly and the error goes away.&lt;BR /&gt;If you need to keep it as a proper time value for calculations, another option is to convert it to minutes or seconds as an integer in SQL, and then format it in DAX on the Power BI side.&lt;BR /&gt;The root cause is that Time in SQL Server is a type that Power BI's DirectQuery engine doesn't handle consistently across all paginated fetches — it's been a known rough edge for a while. Using a string or numeric representation at the source is the most reliable workaround. &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 13:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Time-column-is-throwing-Data-Type-Error-in-Power-BI/m-p/5126117#M64653</guid>
      <dc:creator>Juan-Power-bi</dc:creator>
      <dc:date>2026-03-05T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Time column is throwing Data Type Error in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Time-column-is-throwing-Data-Type-Error-in-Power-BI/m-p/5127895#M64666</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1559363"&gt;@NaqNaq&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out to the Microsoft fabric community forum.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also take a moment to thank &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/195973"&gt;@Juan-Power-bi&lt;/a&gt;&amp;nbsp;  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/P&gt;
&lt;P&gt;I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 06:00:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Time-column-is-throwing-Data-Type-Error-in-Power-BI/m-p/5127895#M64666</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2026-03-09T06:00:57Z</dc:date>
    </item>
  </channel>
</rss>

