<?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: Time field difference in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607421#M75521</link>
    <description>&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have the column below which is a which the format Time.&amp;nbsp; I want to create another column that is a decimal of that so for example if the column says 0.30 I want the new column to display 0.5 as a decimal of an hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help with the DAX for that please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="301004" data-lia-user-login="goncalogeraldes" class="lia-mention lia-mention-user"&gt;goncalogeraldes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 15:40:15 GMT</pubDate>
    <dc:creator>spandy34</dc:creator>
    <dc:date>2022-06-28T15:40:15Z</dc:date>
    <item>
      <title>Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2606470#M75474</link>
      <description>&lt;P&gt;I have the table below which includes two columns which are time fields.I want to add a column called Lost Time that subtracts the Actual_Duration_mins from the Comm_Duration_mins.&amp;nbsp; What will the DAX be for this please as I didnt know if it was different if I was using time fields.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to DAX so please bare with me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="301004" data-lia-user-login="goncalogeraldes" class="lia-mention lia-mention-user"&gt;goncalogeraldes&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 10:06:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2606470#M75474</guid>
      <dc:creator>spandy34</dc:creator>
      <dc:date>2022-06-28T10:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607385#M75519</link>
      <description>&lt;P&gt;Hello there&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="333315" data-lia-user-login="spandy34" class="lia-mention lia-mention-user"&gt;spandy34&lt;/a&gt;&amp;nbsp;! I figure that you are expecting a measure so here goes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this works for you:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Lost Time =
DATEDIFF (
    SELECTEDVALUE ( 'Table'[Actual_Duration_mins] ),
    SELECTEDVALUE ( 'Table'[Comm_Duration_mins] ),
    MINUTE
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer solves your problem!&lt;BR /&gt;If you need any additional help please &lt;SPAN&gt;@&lt;/SPAN&gt; me in your reply.&lt;BR /&gt;If my reply provided you with a solution, please consider marking it as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; or giving it a kudoe &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/gon%C3%A7alo-costa-b32253159" target="_blank"&gt;You can also check out my LinkedIn!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Gonçalo Geraldes&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 15:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607385#M75519</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-06-28T15:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607421#M75521</link>
      <description>&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have the column below which is a which the format Time.&amp;nbsp; I want to create another column that is a decimal of that so for example if the column says 0.30 I want the new column to display 0.5 as a decimal of an hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help with the DAX for that please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="301004" data-lia-user-login="goncalogeraldes" class="lia-mention lia-mention-user"&gt;goncalogeraldes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 15:40:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607421#M75521</guid>
      <dc:creator>spandy34</dc:creator>
      <dc:date>2022-06-28T15:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607459#M75522</link>
      <description>&lt;P&gt;You can use the FORMAT() function:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New column =
FORMAT ( Table[Comm_Duration_mins], "General Number" )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer solves your problem!&lt;BR /&gt;If you need any additional help please &lt;SPAN&gt;@&lt;/SPAN&gt; me in your reply.&lt;BR /&gt;If my reply provided you with a solution, please consider marking it as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; or giving it a kudoe &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/gon%C3%A7alo-costa-b32253159" target="_blank"&gt;You can also check out my LinkedIn!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Gonçalo Geraldes&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 15:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607459#M75522</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-06-28T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607478#M75524</link>
      <description>&lt;P&gt;What field type does my new column need to be as I get the following response as the new column is set to text?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 16:01:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607478#M75524</guid>
      <dc:creator>spandy34</dc:creator>
      <dc:date>2022-06-28T16:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607513#M75527</link>
      <description>&lt;P&gt;Just go:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New column =
VALUE( FORMAT ( Table[Comm_Duration_mins], "General Number" ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Hope this answer solves your problem!&lt;BR /&gt;If you need any additional help please &lt;SPAN&gt;@&lt;/SPAN&gt; me in your reply.&lt;BR /&gt;If my reply provided you with a solution, please consider marking it as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; or giving it a kudoe &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/gon%C3%A7alo-costa-b32253159" target="_blank"&gt;You can also check out my LinkedIn!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Gonçalo Geraldes&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 16:23:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607513#M75527</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-06-28T16:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607526#M75529</link>
      <description>&lt;P&gt;I have put this in and get the following:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what I have put in the column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Comm_Duration_Decimal = &lt;/SPAN&gt;&lt;SPAN&gt;VALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Procurement_Data_2[Comm_Duration_mins]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"General Number"&lt;/SPAN&gt;&lt;SPAN&gt; ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 16:35:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607526#M75529</guid>
      <dc:creator>spandy34</dc:creator>
      <dc:date>2022-06-28T16:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607550#M75531</link>
      <description>&lt;P&gt;Try this then:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Comm_Duration_Decimal =
VALUE (
    FORMAT ( SELECTEDVALUE ( Procurement_Data_2[Comm_Duration_mins] ), "0.00" )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Jun 2022 16:44:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607550#M75531</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-06-28T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Time field difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607563#M75533</link>
      <description>&lt;P&gt;I have done that and get an error "Cannot convert value '' of type Text to type Number."&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 16:53:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-field-difference/m-p/2607563#M75533</guid>
      <dc:creator>spandy34</dc:creator>
      <dc:date>2022-06-28T16:53:53Z</dc:date>
    </item>
  </channel>
</rss>

