<?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: Datediff function seconds and minutes in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2517249#M70045</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;I sent my email in a private message&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 10:24:26 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-05-16T10:24:26Z</dc:date>
    <item>
      <title>Datediff function seconds and minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2496977#M68928</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I calculate a datediff in hours I haven't any problem:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;*Countdown (hours) =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;RELATED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mysql_mail_log[created]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mysql_reports[*NU]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;mysql_reports[first_report_expected]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;HOUR&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I try to calculate the datediff in minutes or seconds, I receive the mesage 'Can't display the visual -&amp;gt; OLE DB or EDBC error: [Expression.Error] We couldn't fold the expression to the data source.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;*Countdown (minutes) = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;RELATED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mysql_mail_log[created]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mysql_reports[*NU]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;mysql_reports[first_report_expected]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MINUTE&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Anyone knows what is wrong?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using SQL direct query data.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 20:21:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2496977#M68928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T20:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff function seconds and minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2498063#M68983</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strange that the HOUR works! Creating time related calculated columns is not allowed in direct query. You have to create measures only&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 08:29:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2498063#M68983</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-06T08:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff function seconds and minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2507179#M69447</link>
      <description>&lt;P&gt;how I calculate 'hh:mm' or decimal hours with only measurement and without column? I want a value for every row without a calculation like sum, average, ...&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 09:05:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2507179#M69447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-11T09:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff function seconds and minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2507441#M69457</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;This might require further formatting&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Countdown (minutes) =
VAR TimeDifference =
    SUMX (
        mysql_reports,
        IF (
            ISBLANK ( RELATED ( mysql_mail_log[created] ) ),
            DATEDIFF ( mysql_reports[*NU], mysql_reports[first_report_expected], MINUTE )
        )
    )
RETURN
    QUOTIENT ( TimeDifference, 60 ) &amp;amp; ":"
        &amp;amp; MOD ( TimeDifference, 60 )&lt;/LI-CODE&gt;&lt;P&gt;Would be great if you can provide sample file&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 10:19:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2507441#M69457</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-11T10:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff function seconds and minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2507452#M69459</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Even more simple is just to substract and select "Short Time" data type manually.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Countdown (minutes) =
SUMX (
    mysql_reports,
    IF (
        ISBLANK ( RELATED ( mysql_mail_log[created] ) ),
        mysql_reports[first_report_expected] - mysql_reports[*NU]
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 May 2022 10:24:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2507452#M69459</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-11T10:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff function seconds and minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2517228#M70044</link>
      <description>&lt;P&gt;I don't succeed &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible to mail you the file?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can give me the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 10:10:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2517228#M70044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T10:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff function seconds and minutes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2517249#M70045</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;I sent my email in a private message&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 10:24:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-function-seconds-and-minutes/m-p/2517249#M70045</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-16T10:24:26Z</dc:date>
    </item>
  </channel>
</rss>

