<?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: Average occupancy in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3924639#M152711</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;I just can't manage to show the average per time in the graph.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to quantify "time".&amp;nbsp; Per what? Per hour, per 30 or 15 minute slot? Or maybe you didn't mean to say "average", rather "for each point in time" ?&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 16:11:11 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-05-16T16:11:11Z</dc:date>
    <item>
      <title>Average occupancy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3923205#M152676</link>
      <description>&lt;P&gt;Hi, I have a challenge in Power BI.&lt;BR /&gt;&lt;BR /&gt;I have a table (name is "Export") containing the following information:&lt;BR /&gt;- date&lt;BR /&gt;- player&lt;BR /&gt;- start time (=&amp;nbsp;&lt;SPAN&gt;[Reservering Tijd start])&lt;/SPAN&gt;&lt;BR /&gt;- end time (=&amp;nbsp;&lt;SPAN&gt;[Reservering Tijd t/m])&lt;/SPAN&gt;&lt;BR /&gt;- reservation number&lt;BR /&gt;- tennis court (= [Baan])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For examble:&lt;/P&gt;&lt;P&gt;Date:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Player:&amp;nbsp; &amp;nbsp;Start time:&amp;nbsp; &amp;nbsp;End time:&amp;nbsp; &amp;nbsp;Res.nr.&amp;nbsp; &amp;nbsp;Court&lt;/P&gt;&lt;P&gt;16-5-2024&amp;nbsp; &amp;nbsp; &amp;nbsp;Mike&amp;nbsp; &amp;nbsp; &amp;nbsp; 8 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;16-5-2024&amp;nbsp; &amp;nbsp; &amp;nbsp;Steve&amp;nbsp; &amp;nbsp; &amp;nbsp;8 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;16-5-2024&amp;nbsp; &amp;nbsp; &amp;nbsp;John&amp;nbsp; &amp;nbsp; &amp;nbsp; 8 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;16-5-2024&amp;nbsp; &amp;nbsp; &amp;nbsp;Robin&amp;nbsp; &amp;nbsp; 8 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.30 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;16-5-2024&amp;nbsp; &amp;nbsp; &amp;nbsp;Rick&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.30 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;17-5-2024&amp;nbsp; &amp;nbsp; &amp;nbsp;Patrick&amp;nbsp; &amp;nbsp;8 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;17-5-2024&amp;nbsp; &amp;nbsp; &amp;nbsp;Dennis&amp;nbsp; &amp;nbsp;8 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On May 16 at 8 a.m. the court occupancy is 2. On May 16 at 8.45 a.m. the court occupancy is 1 (just Mike, steve and John).&lt;BR /&gt;On May 17 at 8 a.m. the court occupancy will be 1.&lt;BR /&gt;On average I have an occupancy of 1.5 at 8 a.m (sometimes 1 court, other times 2 courts) and at 9.15am an average occupancy of 1 (at 9.15am a maximum of 1 court is occupied.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a time table (name is 'Timetable') so that I have all possible times between 8am and 11pm ready.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a graph showing the average tennis court occupancy at each time. So on the x-axis all times from 8:00 am to 11:00 pm and on the y-axis the average tennis court occupancy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to do this by adding the following measurement to muy Export-table:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Baanbezetting = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(Export[Baan]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(Export[Reservering Tijd start]),Export[Reservering Tijd start]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(TimeTable[Tijd])),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(Export[Reservering Tijd t/m]),(Export[Reservering Tijd t/m]&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;min&lt;/SPAN&gt;&lt;SPAN&gt;(TimeTable[Tijd]))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select a number of dates (for example, all dates in April), it will display a full tennis court occupancy (of 100%) at 8 p.m. (busiest time) because in that date range all runways were occupied somewhere at 8 p.m. This should be about 95%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just can't manage to show the average per time in the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iris&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 10:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3923205#M152676</guid>
      <dc:creator>IrisW</dc:creator>
      <dc:date>2024-05-16T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Average occupancy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3924639#M152711</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;I just can't manage to show the average per time in the graph.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to quantify "time".&amp;nbsp; Per what? Per hour, per 30 or 15 minute slot? Or maybe you didn't mean to say "average", rather "for each point in time" ?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 16:11:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3924639#M152711</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-16T16:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average occupancy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3926011#M152754</link>
      <description>&lt;P&gt;Yes, I'm sorry. I meant "for each Start time".&amp;nbsp;One court is reserved per 15 minutes. So the starting times could be every 15 minutes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 06:41:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3926011#M152754</guid>
      <dc:creator>IrisW</dc:creator>
      <dc:date>2024-05-17T06:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average occupancy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3928005#M152821</link>
      <description>&lt;P&gt;Which locale is this?&amp;nbsp; I can't find any locale that uses&amp;nbsp;&lt;SPAN&gt;8.30 am notation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 16:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3928005#M152821</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-17T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Average occupancy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3928039#M152827</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 16:27:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-occupancy/m-p/3928039#M152827</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-17T16:27:46Z</dc:date>
    </item>
  </channel>
</rss>

