<?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: Measure for Start and End Dates - Days Assigned Graph in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Start-and-End-Dates-Days-Assigned-Graph/m-p/3674442#M142608</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682567" data-lia-user-login="draxicle1" class="lia-mention lia-mention-user"&gt;draxicle1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
SUMX(
    CalendarTable,
    CALCULATE(
        COUNTROWS(P6_Planned),
        FILTER(
            P6_Planned,
            P6_Planned[Start] &amp;lt;= CalendarTable[Date]
            &amp;amp;&amp;amp; P6_Planned[Finish] &amp;gt;= CalendarTable[Date]
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the result you want&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;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 02:27:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-02T02:27:14Z</dc:date>
    <item>
      <title>Measure for Start and End Dates - Days Assigned Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Start-and-End-Dates-Days-Assigned-Graph/m-p/3673142#M142512</link>
      <description>&lt;P&gt;Dear PBI community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Power Bi Measure question which I have seen called the “Events in Progress” problem. I've researched and tried to adapt various solutions I've found on this, but none quite fit my scenario. I am fairly new to Power BI and DAX so would appreciate any responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(This is a simplified version of my real world problem)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table called &lt;STRONG&gt;P6_Planned, &lt;/STRONG&gt;which is a list of activities, and a separate date table called &lt;STRONG&gt;CalendarTable&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P6_Planned contains columns called &lt;STRONG&gt;Activities &lt;/STRONG&gt;(a line item name), &lt;STRONG&gt;Start&lt;/STRONG&gt;&amp;nbsp;(date), &lt;STRONG&gt;Finish&lt;/STRONG&gt;&amp;nbsp;(date), and a sum of &lt;STRONG&gt;Days Assigned &lt;/STRONG&gt;(Finish - start +1)&lt;STRONG&gt;. &lt;/STRONG&gt;The dates are connected to the CalendarTable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a measure that looks at a date and sums all the Days Assigned across &lt;STRONG&gt;ALL&lt;/STRONG&gt; the activities, and takes into account the cumulative effect of overlaps. With this measure I would like to plot a graph with x-axis being dates and y-axis showing how many assigned days there are across all activities&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a attached an illustration of what I’m trying to achieve. (Not sure how to attach the pbix file to this post.)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks in anticipation!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 14:31:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Start-and-End-Dates-Days-Assigned-Graph/m-p/3673142#M142512</guid>
      <dc:creator>draxicle1</dc:creator>
      <dc:date>2024-02-01T14:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Start and End Dates - Days Assigned Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Start-and-End-Dates-Days-Assigned-Graph/m-p/3674442#M142608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682567" data-lia-user-login="draxicle1" class="lia-mention lia-mention-user"&gt;draxicle1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
SUMX(
    CalendarTable,
    CALCULATE(
        COUNTROWS(P6_Planned),
        FILTER(
            P6_Planned,
            P6_Planned[Start] &amp;lt;= CalendarTable[Date]
            &amp;amp;&amp;amp; P6_Planned[Finish] &amp;gt;= CalendarTable[Date]
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the result you want&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;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 02:27:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Start-and-End-Dates-Days-Assigned-Graph/m-p/3674442#M142608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-02T02:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Start and End Dates - Days Assigned Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Start-and-End-Dates-Days-Assigned-Graph/m-p/3675854#M142711</link>
      <description>&lt;P&gt;This is great. Thank you so much for your time. I have replicated this is my main model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only fly in the ointment (I learned from a recent meeting) is that I made the assumption that every day between the start and finish is actively being used on every activity in the list. Apparently there will be a new column that shows the amount of time (effort in hours)&amp;nbsp; used between those dates.&amp;nbsp; So I guess if you had 10 days duration, but only 24 hours of actual effort spread across those, you would have an average 2.4 hours showing every day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps that's one for another post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 15:04:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Start-and-End-Dates-Days-Assigned-Graph/m-p/3675854#M142711</guid>
      <dc:creator>draxicle1</dc:creator>
      <dc:date>2024-02-02T15:04:57Z</dc:date>
    </item>
  </channel>
</rss>

