<?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 I need to subtract one day if the time is between 12AM and 2AM in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-subtract-one-day-if-the-time-is-between-12AM-and-2AM/m-p/1192637#M18905</link>
    <description>&lt;P&gt;I have a Time field =IC_HistoryProducts[Time]&lt;/P&gt;&lt;P&gt;And a Date field=&amp;nbsp;IC_HistoryProducts[TransactionDate]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need is to subtract 1 day from the date field if the time field is between 12AM~2AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is driving me nuts and could use some help&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 15:25:52 GMT</pubDate>
    <dc:creator>tdisalvo</dc:creator>
    <dc:date>2020-06-30T15:25:52Z</dc:date>
    <item>
      <title>I need to subtract one day if the time is between 12AM and 2AM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-subtract-one-day-if-the-time-is-between-12AM-and-2AM/m-p/1192637#M18905</link>
      <description>&lt;P&gt;I have a Time field =IC_HistoryProducts[Time]&lt;/P&gt;&lt;P&gt;And a Date field=&amp;nbsp;IC_HistoryProducts[TransactionDate]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need is to subtract 1 day from the date field if the time field is between 12AM~2AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is driving me nuts and could use some help&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 15:25:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-subtract-one-day-if-the-time-is-between-12AM-and-2AM/m-p/1192637#M18905</guid>
      <dc:creator>tdisalvo</dc:creator>
      <dc:date>2020-06-30T15:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: I need to subtract one day if the time is between 12AM and 2AM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-subtract-one-day-if-the-time-is-between-12AM-and-2AM/m-p/1192826#M18915</link>
      <description>&lt;P&gt;What does this do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;newcolumn = if(hour(&lt;SPAN&gt;IC_HistoryProducts[Time])&amp;lt;2, previousday(IC_HistoryProducts[TransactionDate]),IC_HistoryProducts[TransactionDate])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 15:53:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-subtract-one-day-if-the-time-is-between-12AM-and-2AM/m-p/1192826#M18915</guid>
      <dc:creator>jthomson</dc:creator>
      <dc:date>2020-06-30T15:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: I need to subtract one day if the time is between 12AM and 2AM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-subtract-one-day-if-the-time-is-between-12AM-and-2AM/m-p/1192869#M18919</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;new column = IF([Timecolumn]&amp;gt;12:00AM,IF([Timecolumn]&amp;lt;2:00AM,DATEADD([datecolumn],-1,date),[datecolumn])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if this is it so let me know if it works.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 16:01:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-subtract-one-day-if-the-time-is-between-12AM-and-2AM/m-p/1192869#M18919</guid>
      <dc:creator>Pulkit</dc:creator>
      <dc:date>2020-06-30T16:01:08Z</dc:date>
    </item>
  </channel>
</rss>

