<?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: Calculate date -1 day if  has condition in time range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-date-1-day-if-has-condition-in-time-range/m-p/2634079#M77181</link>
    <description>&lt;P&gt;Great that worked!&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 15:09:37 GMT</pubDate>
    <dc:creator>Pilvie</dc:creator>
    <dc:date>2022-07-12T15:09:37Z</dc:date>
    <item>
      <title>Calculate date -1 day if  has condition in time range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-date-1-day-if-has-condition-in-time-range/m-p/2633625#M77143</link>
      <description>&lt;P&gt;I'm a newbie for Power BI. I would like to create date column that show date -1 if time range in 00:00 - 6:00 am.&lt;BR /&gt;What's dax that I have to use for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's I want.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:17:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-date-1-day-if-has-condition-in-time-range/m-p/2633625#M77143</guid>
      <dc:creator>Pilvie</dc:creator>
      <dc:date>2022-07-12T12:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate date -1 day if  has condition in time range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-date-1-day-if-has-condition-in-time-range/m-p/2633833#M77158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="395502" data-lia-user-login="Pilvie" class="lia-mention lia-mention-user"&gt;Pilvie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the DAX for the calculated column:&lt;/P&gt;&lt;PRE&gt;date = INT ( [start_date] - 6 / 24 )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do not forget to change the Data Type to Date afterwards:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:43:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-date-1-day-if-has-condition-in-time-range/m-p/2633833#M77158</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-07-12T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate date -1 day if  has condition in time range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-date-1-day-if-has-condition-in-time-range/m-p/2634079#M77181</link>
      <description>&lt;P&gt;Great that worked!&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 15:09:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-date-1-day-if-has-condition-in-time-range/m-p/2634079#M77181</guid>
      <dc:creator>Pilvie</dc:creator>
      <dc:date>2022-07-12T15:09:37Z</dc:date>
    </item>
  </channel>
</rss>

