<?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: Convert Seconds to Hours in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Seconds-to-Hours/m-p/3725428#M145114</link>
    <description>&lt;P&gt;Have you considered dividing the seconds by 3600 ?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 01:27:38 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-02-27T01:27:38Z</dc:date>
    <item>
      <title>Convert Seconds to Hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Seconds-to-Hours/m-p/3725145#M145083</link>
      <description>&lt;P&gt;I'm working with time duration that comes in seconds. I've already converted the metric to hh:nn:ss, but that won't work for our purposes as we need a sum or average to show for whatever time frame the end user selects. Two alternatives were suggested, but I'm unable to get the DAX formula to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to convert seconds to hours so 30 min shows as .5 and so on. I've been unable to find a formaula for this, however.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Feb 2024 21:49:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Seconds-to-Hours/m-p/3725145#M145083</guid>
      <dc:creator>SChariton</dc:creator>
      <dc:date>2024-02-26T21:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Seconds to Hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Seconds-to-Hours/m-p/3725428#M145114</link>
      <description>&lt;P&gt;Have you considered dividing the seconds by 3600 ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 01:27:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Seconds-to-Hours/m-p/3725428#M145114</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-27T01:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Seconds to Hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Seconds-to-Hours/m-p/3726969#M145178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="696685" data-lia-user-login="SChariton" class="lia-mention lia-mention-user"&gt;SChariton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp; said, you can divide the seconds value by 3600 to get the hour value. Detailed steps are shown below.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Based on your description, I created this data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create a calculated column or measure and write an expression. In this example I created a calculated column. For more information about the divide function, please refer to the documentation: &lt;A href="https://learn.microsoft.com/en-us/dax/divide-function-dax" target="_blank"&gt;DIVIDE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;hour = DIVIDE('Table'[sec],3600)&lt;/LI-CODE&gt;
&lt;P&gt;3. The results can be formatted in the table tool, in this example I kept the results to 3 decimal places.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4. The final result is shown in the figure below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 09:44:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Seconds-to-Hours/m-p/3726969#M145178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-27T09:44:26Z</dc:date>
    </item>
  </channel>
</rss>

