<?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: Date/TIme variance based on day only (ignoring time) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1086597#M15549</link>
    <description>&lt;P&gt;Use INT([datetime])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will drop the decimal portion of your date time column.&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 19:09:28 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-05-12T19:09:28Z</dc:date>
    <item>
      <title>Date/TIme variance based on day only (ignoring time)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1086551#M15548</link>
      <description>&lt;P&gt;I have got two date/time fields in the table that I am using in a nested if statement that calculates the variance between them. I want power bi to ignore the hours completely and calculate the variance based on days only&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;What I get : (01/01/2020 00:00:00) -( 01/01/2020 17:00:00) =&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;What I would like to see&amp;nbsp; (01/01/2020 00:00:00) -( 01/01/2020 17:00:00) =&amp;nbsp; &amp;nbsp;0 ( because the day is the same)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula extract:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR = IF(ISBLANK(tasks[TaskFinishDate]), 9999,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(tasks[DEP TYPE1]="GIVE",(tasks[ Forecast 9th Mar]- tasks[TaskFinishDate]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;8888))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 May 2020 18:13:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1086551#M15548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-12T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date/TIme variance based on day only (ignoring time)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1086597#M15549</link>
      <description>&lt;P&gt;Use INT([datetime])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will drop the decimal portion of your date time column.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 19:09:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1086597#M15549</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-12T19:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date/TIme variance based on day only (ignoring time)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1087491#M15577</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; Thank you very much, one last question is there a way to apply INT per formula rather than per each date column ( as my formula has quite a few lines) ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so that instead of INT(date1)-INT(date2)&lt;/P&gt;&lt;P&gt;something like INT([date1]-[date2]) - this didnt work but wondering if there is a way to do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 08:57:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1087491#M15577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T08:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date/TIme variance based on day only (ignoring time)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1087602#M15579</link>
      <description>The best way is to store date and time separately. Then you won't have such problems.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 13 May 2020 09:47:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1087602#M15579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-13T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date/TIme variance based on day only (ignoring time)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1087816#M15600</link>
      <description>Might be able to use TRUNC</description>
      <pubDate>Wed, 13 May 2020 12:14:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-TIme-variance-based-on-day-only-ignoring-time/m-p/1087816#M15600</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-13T12:14:21Z</dc:date>
    </item>
  </channel>
</rss>

