<?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: Sum Hours DATESBETWEEN STARTEDATE and Today in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2324870#M58162</link>
    <description>&lt;P&gt;Thank you very much for your help. I will test it as soon as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way to add a "milestone bar" to a timeline.&lt;/P&gt;&lt;P&gt;With the above calculation I want the values from a certain point in time until today.&lt;/P&gt;&lt;P&gt;I would also like to have a graph with a dates series in the X axis. Now I would like to make the graph recognizable with the above starting point.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 08:05:39 GMT</pubDate>
    <dc:creator>MM1984</dc:creator>
    <dc:date>2022-02-08T08:05:39Z</dc:date>
    <item>
      <title>Sum Hours DATESBETWEEN STARTEDATE and Today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2308885#M57337</link>
      <description>&lt;P&gt;Thank you first for the feedback on my questions.&lt;BR /&gt;Now, unfortunately, I have another issue regarding DATESBETWEEN(&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a table with hours bookings:&lt;/P&gt;&lt;P&gt;tblHours&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Date / Pers. number / Project / Hours&lt;BR /&gt;01.01.2020 / 123 / 112200 / 3&lt;BR /&gt;01.01.2020 / 123 / 112200 / 3,75&lt;BR /&gt;01.01.2020 / 244 / 112200 / 3&lt;BR /&gt;05.10.2022 / 123 / 112200 / 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would like to take a start date from another table for my calculation. This is constantly adjusted due to project shifts.&lt;/P&gt;&lt;P&gt;tblStartdate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Project / Start date&lt;BR /&gt;112200 / 24.12.2019&lt;BR /&gt;113255 / 01.12.2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the calculation I want to determine the number of hours between start date and TODAY().&lt;/P&gt;&lt;P&gt;Measure total hours for project 112200 between 12/24/2019 to TODAY() = 6.75 hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(SUM(tblHours[Hours],DATESBETWEEN(tblHours[Date].Date, STARTDATE[DATE], TODAY()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does not work like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 13:24:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2308885#M57337</guid>
      <dc:creator>MM1984</dc:creator>
      <dc:date>2022-01-29T13:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Hours DATESBETWEEN STARTEDATE and Today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2308903#M57340</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can achieve this kind of filtering e.g. like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter to today = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_start&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Aggregation[Opened At (Month)]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Aggregation[Duration(Secs)]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Aggregation&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Aggregation[Opened At (Month)]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;_start&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Aggregation[Opened At (Month)]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Example:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 14:00:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2308903#M57340</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-29T14:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Hours DATESBETWEEN STARTEDATE and Today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2324480#M58140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="352239" data-lia-user-login="MM1984" class="lia-mention lia-mention-user"&gt;MM1984&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Create the following column on tblhours:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;startdate = LOOKUPVALUE(tblStartdate[Start date],tblStartdate[Project],tblHours[Project])&lt;/LI-CODE&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;LI-CODE lang="markup"&gt;Column = CALCULATE(SUM(tblHours[Hours]),FILTER(ALL(tblHours),tblHours[Project]=EARLIER(tblHours[Project])&amp;amp;&amp;amp; tblHours[Date]&amp;gt;tblHours[startdate]&amp;amp;&amp;amp;tblHours[Date]&amp;lt;=TODAY()))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And the info you provided ,all three circled below are satisfied, so the value should be 9.75:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Did I answer your question? Mark my post as a solution!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Lucien&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 03:26:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2324480#M58140</guid>
      <dc:creator>v-luwang-msft</dc:creator>
      <dc:date>2022-02-08T03:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Hours DATESBETWEEN STARTEDATE and Today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2324870#M58162</link>
      <description>&lt;P&gt;Thank you very much for your help. I will test it as soon as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way to add a "milestone bar" to a timeline.&lt;/P&gt;&lt;P&gt;With the above calculation I want the values from a certain point in time until today.&lt;/P&gt;&lt;P&gt;I would also like to have a graph with a dates series in the X axis. Now I would like to make the graph recognizable with the above starting point.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 08:05:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2324870#M58162</guid>
      <dc:creator>MM1984</dc:creator>
      <dc:date>2022-02-08T08:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Hours DATESBETWEEN STARTEDATE and Today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2324997#M58174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="352239" data-lia-user-login="MM1984" class="lia-mention lia-mention-user"&gt;MM1984&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try the custom visual Pulse chart, it is designed for showing milestones on a timeline.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Pulse chart:&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/blog/visual-awesomeness-unlocked-pulse-chart/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://powerbi.microsoft.com/en-us/blog/visual-awesomeness-unlocked-pulse-chart/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Lucien&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 08:50:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2324997#M58174</guid>
      <dc:creator>v-luwang-msft</dc:creator>
      <dc:date>2022-02-08T08:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Hours DATESBETWEEN STARTEDATE and Today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2325180#M58181</link>
      <description>&lt;P&gt;Thank you very much. This is exactly what I was looking for.&lt;/P&gt;&lt;P&gt;Could I get some more assistance.&lt;/P&gt;&lt;P&gt;I have created a table with all dates from 2010 - 2030 as output.&lt;BR /&gt;Now I have again the table hours analog listed above.&lt;/P&gt;&lt;P&gt;For the chart I need the cumulative hours. In the table hours currently listed all booked hours for ALL projects. In my report I select one project at a time with a slicer.&lt;/P&gt;&lt;P&gt;Now I have added a new column "Hours" to my table Date. There are now per date ALL hours for all projects per day listed. Now I have to calculate the cumulative hours.&lt;/P&gt;&lt;P&gt;First, my table must be selected by slicer and I must calculate the cumulative hours.&lt;/P&gt;&lt;P&gt;I hope you understand my request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 09:47:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Hours-DATESBETWEEN-STARTEDATE-and-Today/m-p/2325180#M58181</guid>
      <dc:creator>MM1984</dc:creator>
      <dc:date>2022-02-08T09:47:11Z</dc:date>
    </item>
  </channel>
</rss>

