<?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 multiple occurrence over a period within multiple time ranges in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3106078#M109465</link>
    <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="248854" data-lia-user-login="oskarcph" class="lia-mention lia-mention-user"&gt;oskarcph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you say "calcucate the number of occurrences in a week ", could you make a screenshot about how the measure will be showcased? what context do you have for the measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p.s. please consider&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;someone, to continue a discussion.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 14:48:15 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-03-01T14:48:15Z</dc:date>
    <item>
      <title>Calculate multiple occurrence over a period within multiple time ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3060570#M105736</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
var _sdate = MAX(TableA[Shift_start_date])
var _edate = MAX(TableA[Shift_end_date])
var _count = 
 COUNTROWS(
        FILTER('TableB'[DateTime]&amp;gt;=_sdate &amp;amp;&amp;amp; 'TableB'[Datetime]&amp;lt;=_edate))

return
    IF(ISBLANK(_count),0,_count)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;I hope you can help me, I am trying to calcucate number of&amp;nbsp;occurrences on multiple days.&amp;nbsp;&lt;BR /&gt;The above formula is generating the right output if I put it into a table for a daily view but if I wants to calcucate the number of occurrences in a week then it also shows the last output (Which is due to the MAX()), so can you help?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:16:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3060570#M105736</guid>
      <dc:creator>oskarcph</dc:creator>
      <dc:date>2023-02-03T15:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate multiple occurrence over a period within multiple time ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3060608#M105739</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="248854" data-lia-user-login="oskarcph" class="lia-mention lia-mention-user"&gt;oskarcph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you say "&lt;SPAN&gt;calcucate the number of occurrences in a week&amp;nbsp;&lt;/SPAN&gt;", could you make a screenshot about how the measure will be showcased?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3060608#M105739</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-03T15:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate multiple occurrence over a period within multiple time ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3068645#M106365</link>
      <description>&lt;P&gt;Hi Freeman, sorry for the late reply&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So, I need to see if a flight leaves during an employee's shift, I made a column with the date and time of the flight's departure to link up with the employees shift which consist of two columns (See picture), a shift can example start at 22:00 monday and end at 06:00 on the next day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 10:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3068645#M106365</guid>
      <dc:creator>oskarcph</dc:creator>
      <dc:date>2023-02-08T10:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate multiple occurrence over a period within multiple time ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3105965#M109445</link>
      <description>&lt;P&gt;Anyone? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 13:52:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3105965#M109445</guid>
      <dc:creator>oskarcph</dc:creator>
      <dc:date>2023-03-01T13:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate multiple occurrence over a period within multiple time ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3106078#M109465</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="248854" data-lia-user-login="oskarcph" class="lia-mention lia-mention-user"&gt;oskarcph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you say "calcucate the number of occurrences in a week ", could you make a screenshot about how the measure will be showcased? what context do you have for the measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p.s. please consider&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;someone, to continue a discussion.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:48:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-multiple-occurrence-over-a-period-within-multiple-time/m-p/3106078#M109465</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-01T14:48:15Z</dc:date>
    </item>
  </channel>
</rss>

