<?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: undefined in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2326470#M58281</link>
    <description>&lt;P&gt;I got 10457854:14:00&amp;nbsp; in card visual.should I format this?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 20:42:37 GMT</pubDate>
    <dc:creator>AtchayaP</dc:creator>
    <dc:date>2022-02-08T20:42:37Z</dc:date>
    <item>
      <title>undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2325984#M58239</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How to find time spent to solve assignment 1 and assignment 2.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 15:43:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2325984#M58239</guid>
      <dc:creator>AtchayaP</dc:creator>
      <dc:date>2022-02-08T15:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2326029#M58241</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;You can solve this in Power Query:&lt;/P&gt;&lt;P&gt;Add new column &amp;gt; custom column &amp;gt; enter this formula: Duration.TotalSeconds([End Time]-[Start Time])&lt;BR /&gt;This will return result in total difference in seconds.&lt;BR /&gt;For difference in minutes this is the formula: Duration.TotalMinutes([End Time]-[Start Time])&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Convert data type to decimal as the answer first ocomes out as text.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:03:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2326029#M58241</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-02-08T16:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2326470#M58281</link>
      <description>&lt;P&gt;I got 10457854:14:00&amp;nbsp; in card visual.should I format this?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 20:42:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2326470#M58281</guid>
      <dc:creator>AtchayaP</dc:creator>
      <dc:date>2022-02-08T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2332532#M58648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="355497" data-lia-user-login="AtchayaP" class="lia-mention lia-mention-user"&gt;AtchayaP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ensure [Time created] and [Time closed] columns are both of Time data type, then you can create a new column with below DAX. This returns spent time in seconds for every row.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time in Second = DATEDIFF('Table'[Time created],'Table'[Time closed],SECOND)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create a measure to calculate the total of time spent. I format it to show result like "xx h xx m xx s".&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time Spent = 
VAR _totalSeconds = SUM('Table'[Time in Second])
VAR _hours = INT(_totalSeconds/3600)
VAR _minutes = INT(MOD(_totalSeconds,3600)/60)
VAR _seconds = MOD(MOD(_totalSeconds,3600),60)
RETURN
_hours&amp;amp;"h"&amp;amp;_minutes&amp;amp;"m"&amp;amp;_seconds&amp;amp;"s"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you drag [Time in Second] column into a card visual directly and select SUM aggregation type for it, it will show the total time spent in seconds. It equals to above result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards, &lt;BR /&gt;Community Support Team _ Jing&lt;BR /&gt;If this post helps, please Accept it as Solution to help other members find it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 07:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2332532#M58648</guid>
      <dc:creator>v-jingzhang</dc:creator>
      <dc:date>2022-02-11T07:08:43Z</dc:date>
    </item>
  </channel>
</rss>

