<?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: 24 hour day switch in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2734227#M83824</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424505" data-lia-user-login="amandabus21" class="lia-mention lia-mention-user"&gt;amandabus21&lt;/a&gt; , Assume you have timestamp (Date + time)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new column like&lt;/P&gt;
&lt;P&gt;Correct date =&lt;/P&gt;
&lt;P&gt;var _time = timevalue([Datetime])&lt;/P&gt;
&lt;P&gt;var _date - datevalue([Datetime])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(_time&amp;nbsp; &amp;lt; time(3,0,0) , _date&amp;nbsp; -1, _date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change this as per need&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 06:41:34 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-08-30T06:41:34Z</dc:date>
    <item>
      <title>24 hour day switch</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2733161#M83757</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I change my 24 hour revenue "day" to be from 2:59AM - 3:01AM the next day?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data is in the current form of 12:00 - 12:00 but need a seperate column/ measure for our working revenue day.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 17:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2733161#M83757</guid>
      <dc:creator>amandabus21</dc:creator>
      <dc:date>2022-08-29T17:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: 24 hour day switch</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2734227#M83824</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424505" data-lia-user-login="amandabus21" class="lia-mention lia-mention-user"&gt;amandabus21&lt;/a&gt; , Assume you have timestamp (Date + time)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new column like&lt;/P&gt;
&lt;P&gt;Correct date =&lt;/P&gt;
&lt;P&gt;var _time = timevalue([Datetime])&lt;/P&gt;
&lt;P&gt;var _date - datevalue([Datetime])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(_time&amp;nbsp; &amp;lt; time(3,0,0) , _date&amp;nbsp; -1, _date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change this as per need&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2734227#M83824</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-30T06:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: 24 hour day switch</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2739195#M84115</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only have one table named "OccurenceTimeStamp" The table has data and time already together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the slicer to be able to filter between 2:59AM - 3:01AM and not change my data.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 22:40:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2739195#M84115</guid>
      <dc:creator>amandabus21</dc:creator>
      <dc:date>2022-08-31T22:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: 24 hour day switch</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2739816#M84154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424505" data-lia-user-login="amandabus21" class="lia-mention lia-mention-user"&gt;amandabus21&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;First, you need to create a time dimension table. And do not create any relationship with the fact table. Then you can create a measure with the conditions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;if the time between 2:59 and 24:00 then current day&lt;/LI&gt;
&lt;LI&gt;if the time between 0:00 and 3:01 then current day+1&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;How did you want to display the data on the visual using the fact table? Could you please provide more details on your requirement? Thank you.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 06:44:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2739816#M84154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-01T06:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: 24 hour day switch</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2741831#M84297</link>
      <description>&lt;P&gt;So do i need to create two seperate columns? One with date and one with time?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i do that, what measure do I use after that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to filter all my information based on the 2:59AM - 3:01AM clock. So for example I want to know how many late buses happened on 9/1/22. but on 9/1/22 from 2:59AM - 3:01AM&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 23:24:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2741831#M84297</guid>
      <dc:creator>amandabus21</dc:creator>
      <dc:date>2022-09-01T23:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: 24 hour day switch</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2762637#M85681</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still unable to solve&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 18:36:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/24-hour-day-switch/m-p/2762637#M85681</guid>
      <dc:creator>amandabus21</dc:creator>
      <dc:date>2022-09-12T18:36:16Z</dc:date>
    </item>
  </channel>
</rss>

