<?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 Hours to Days and Minutes in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991314#M44076</link>
    <description>&lt;P&gt;Thats brilliant thank you. Works a treat.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;</description>
    <pubDate>Sun, 01 Aug 2021 11:47:54 GMT</pubDate>
    <dc:creator>KarenFingerhut</dc:creator>
    <dc:date>2021-08-01T11:47:54Z</dc:date>
    <item>
      <title>Convert Hours to Days and Minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1990939#M44059</link>
      <description>&lt;P&gt;Hi there&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to convert a duration total to Days, Hours and Minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for instance someone works 7 hours a day and over the course of a month has worked 560 hours. Im trying to covert 560 hours to X days, x hours, x minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just cant seem to do this and i'd be very grateful if someone could help me with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 14:02:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1990939#M44059</guid>
      <dc:creator>KarenFingerhut</dc:creator>
      <dc:date>2021-07-31T14:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hours to Days and Minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991021#M44060</link>
      <description>&lt;P&gt;Try this (replace&amp;nbsp;[OverTimeHoursMeasure] with the correct measure name):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OverTime =
VAR OverTimeHours = [OverTimeHoursMeasure]
VAR Days = INT ( WorkingHours / 24 )
VAR Hours = INT ( WorkingHours - INT ( WorkingHours / 24 ) )
VAR Minutes = ROUND ( MOD ( WorkingHours, 1 )* 60 , 0)
RETURN
Days &amp;amp; " Days " &amp;amp; Hours &amp;amp; " Hours " &amp;amp; Minutes &amp;amp; " Minutes"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 16:55:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991021#M44060</guid>
      <dc:creator>Mohammad_Refaei</dc:creator>
      <dc:date>2021-07-31T16:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hours to Days and Minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991251#M44071</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me. Unfortunately, it doesnt quite work. Here's my result using your formula . Format 2 is your formula and Duration (h) is the number of hours they've done. So for instance Garden, Duration (h) =&amp;nbsp; 32.50. So really they've worked 4 days 4 hours. Can you help with this please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Aug 2021 08:19:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991251#M44071</guid>
      <dc:creator>KarenFingerhut</dc:creator>
      <dc:date>2021-08-01T08:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hours to Days and Minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991268#M44074</link>
      <description>&lt;P&gt;I see I made a mistake while converting the hours, also I didn't consider that your working day is 7 hours... please try this, it should work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OverTime =
VAR OverTimeHours = [OverTimeHoursMeasure]
VAR Days = INT ( WorkingHours / 7 )
VAR Hours = INT ( WorkingHours - Days * 7 )
VAR Minutes = ROUND ( MOD ( WorkingHours, 1 )* 60 , 0)
RETURN
Days &amp;amp; " Days " &amp;amp; Hours &amp;amp; " Hours " &amp;amp; Minutes &amp;amp; " Minutes"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Aug 2021 09:23:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991268#M44074</guid>
      <dc:creator>Mohammad_Refaei</dc:creator>
      <dc:date>2021-08-01T09:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hours to Days and Minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991314#M44076</link>
      <description>&lt;P&gt;Thats brilliant thank you. Works a treat.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;</description>
      <pubDate>Sun, 01 Aug 2021 11:47:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/1991314#M44076</guid>
      <dc:creator>KarenFingerhut</dc:creator>
      <dc:date>2021-08-01T11:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Hours to Days and Minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/2489508#M68497</link>
      <description>&lt;P&gt;Thanks, I had a similar question and I figured it out using your proposed solution.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 20:39:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Hours-to-Days-and-Minutes/m-p/2489508#M68497</guid>
      <dc:creator>MXKCapgroup</dc:creator>
      <dc:date>2022-05-02T20:39:04Z</dc:date>
    </item>
  </channel>
</rss>

