<?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: how to convert time format on 2025-06-30 15:15:46.745000 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847387#M184992</link>
    <description>&lt;P&gt;Hi Krishna,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In Power Query, select the Add Column Tab and select Custom Column. Here you can name a new Date Column and enter the M Code -&amp;nbsp;&lt;BR /&gt;= DateTime.ToText([YourColumnName], "M/d/yyyy h:mm:ss tt")&lt;BR /&gt;&lt;BR /&gt;Let me know how you get along &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;~ Numa&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Oct 2025 08:33:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-10-10T08:33:10Z</dc:date>
    <item>
      <title>how to convert time format on 2025-06-30 15:15:46.745000</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847368#M184990</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requesting please check and provide the time format.&lt;/P&gt;&lt;P&gt;source sourace of data.&lt;/P&gt;&lt;P&gt;2025-06-30 15:15:46.745000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Required out like this ----6/30/2025 3:12:36 PM---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have connected though direct query please check and share the details&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 08:03:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847368#M184990</guid>
      <dc:creator>krishna_murthy</dc:creator>
      <dc:date>2025-10-10T08:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert time format on 2025-06-30 15:15:46.745000</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847384#M184991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1082687" data-lia-user-login="krishna_murthy" class="lia-mention lia-mention-user"&gt;krishna_murthy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1. In Power Query (M Language)&lt;/P&gt;
&lt;P&gt;If your column name is DateTimeColumn:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.TransformColumns(
   Source,
  {{"DateTimeColumn", each DateTime.ToText(_, "M/d/yyyy h:mm:ss tt"), type text}}
)&lt;/LI-CODE&gt;
&lt;P&gt;Converts to 12-hour format with AM/PM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. In DAX (Calculated Column or Measure)&lt;/P&gt;
&lt;P&gt;If your column is [DateTimeColumn]:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Formatted Time =
FORMAT ( [DateTimeColumn], "M/d/yyyy h:mm:ss AM/PM" )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 08:30:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847384#M184991</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-10-10T08:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert time format on 2025-06-30 15:15:46.745000</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847387#M184992</link>
      <description>&lt;P&gt;Hi Krishna,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In Power Query, select the Add Column Tab and select Custom Column. Here you can name a new Date Column and enter the M Code -&amp;nbsp;&lt;BR /&gt;= DateTime.ToText([YourColumnName], "M/d/yyyy h:mm:ss tt")&lt;BR /&gt;&lt;BR /&gt;Let me know how you get along &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;~ Numa&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 08:33:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847387#M184992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-10-10T08:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert time format on 2025-06-30 15:15:46.745000</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847548#M184997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1082687" data-lia-user-login="krishna_murthy" class="lia-mention lia-mention-user"&gt;krishna_murthy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To convert a datetime value like 2025-06-30 15:15:46.745000 to the format 6/30/2025 3:12:36 PM in Power BI using DirectQuery, you should use the DAX FORMAT function to create a calculated column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FormattedDateTime = FORMAT('YourTable'[DateTimeColumn], "m/d/yyyy h:mm:ss AM/PM")&lt;BR /&gt;&lt;BR /&gt;Note:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Replace 'YourTable' with the actual name of your table and [DateTimeColumn] with the name of your datetime column containing values like 2025-06-30 15:15:46.745000.&lt;/LI&gt;
&lt;LI&gt;FORMAT function returns a text result, so this column cannot be used for chronological sorting or numeric calculations. It is intended purely for display purposes in visuals.&lt;/LI&gt;
&lt;LI class=""&gt;
&lt;P class=""&gt;If you need to sort by this date, keep the original datetime column and use it in sorting, while displaying the formatted version in visuals.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Alternative approach:&amp;nbsp;Custom Formatting in Visual Level&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select the visual using the datetime field.&lt;/LI&gt;
&lt;LI&gt;In the Visualizations pane, expand the field well.&lt;/LI&gt;
&lt;LI&gt;Click the dropdown next to the datetime field and select Format.&lt;/LI&gt;
&lt;LI&gt;Choose a custom format like m/d/yyyy h:mm:ss AM/PM.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This method keeps the underlying data type as datetime, preserving sortability and filtering capabilities while changing only the display format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt; I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":military_medal:"&gt;🎖&lt;/span&gt; As a proud &lt;/SPAN&gt;&lt;STRONG&gt;SuperUser&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;Microsoft Partner&lt;/STRONG&gt;&lt;SPAN&gt;, we’re here to empower your data journey and the Power BI Community at large.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; Curious to explore more?&lt;/SPAN&gt;&lt;A href="https://www.grazitti.com/services/data-science/solutions/data-visualization/?utm_source=community&amp;amp;utm_medium=powerbi-community&amp;amp;utm_campaign=Community-Outreach-By-Analytics" target="_blank"&gt; &lt;SPAN&gt;[Discover here]&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;Let’s keep building smarter solutions together!&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 11:31:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847548#M184997</guid>
      <dc:creator>grazitti_sapna</dc:creator>
      <dc:date>2025-10-10T11:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert time format on 2025-06-30 15:15:46.745000</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847611#M185000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1082687" data-lia-user-login="krishna_murthy" class="lia-mention lia-mention-user"&gt;krishna_murthy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;since it is directquery i will agree with &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="546935" data-lia-user-login="grazitti_sapna" class="lia-mention lia-mention-user"&gt;grazitti_sapna&lt;/a&gt;&amp;nbsp; and suggest the same.&lt;/P&gt;&lt;P&gt;Another option to handle this could be in the query itself.&lt;/P&gt;&lt;P&gt;when you are connecting&amp;nbsp; the table through Directquery, apply the inbuilt sql functions to convert it into the format you want.this will push the transformation to the source database making report faster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give kudos or mark it as resolved once confirmed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praful&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 12:52:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4847611#M185000</guid>
      <dc:creator>Praful_Potphode</dc:creator>
      <dc:date>2025-10-10T12:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert time format on 2025-06-30 15:15:46.745000</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4850519#M185122</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1082687" data-lia-user-login="krishna_murthy" class="lia-mention lia-mention-user"&gt;krishna_murthy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="546935" data-lia-user-login="grazitti_sapna" class="lia-mention lia-mention-user"&gt;grazitti_sapna&lt;/a&gt;&amp;nbsp;,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824538" data-lia-user-login="rohit1991" class="lia-mention lia-mention-user"&gt;rohit1991&lt;/a&gt;&amp;nbsp; for prompt and helpful responses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 07:56:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4850519#M185122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-10-15T07:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert time format on 2025-06-30 15:15:46.745000</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4854502#M185234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1082687" data-lia-user-login="krishna_murthy" class="lia-mention lia-mention-user"&gt;krishna_murthy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 05:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-time-format-on-2025-06-30-15-15-46-745000/m-p/4854502#M185234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-10-21T05:52:55Z</dc:date>
    </item>
  </channel>
</rss>

