<?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: How to get sum of values between two DateTime in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/741365#M2289</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here I am elaborating my issue with one example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to add all the billing amount in between 01/01/2019 4:00 am to 02/01/2019 4:00 am using DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result should be&amp;nbsp; $158 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 17:15:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-16T17:15:34Z</dc:date>
    <item>
      <title>How to get sum of values between two DateTime</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/739231#M2207</link>
      <description>Hello ,&lt;BR /&gt;I want to calculate sum of revenue between two DateTime using DAX.&lt;BR /&gt;For example :-&lt;BR /&gt;If I want to calculate sum of revenue between 01/07/2019 4:00:00 AM (dd/mm/yyyy hh:mm:ss ) and 10/07/2019 4:00:00 AM.&lt;BR /&gt;&lt;BR /&gt;Is there any function which can do this calculations.&lt;BR /&gt;Any help is highly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;VivekC</description>
      <pubDate>Sat, 13 Jul 2019 16:35:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/739231#M2207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-13T16:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of values between two DateTime</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/739232#M2208</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 16:38:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/739232#M2208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-13T16:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of values between two DateTime</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/741365#M2289</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here I am elaborating my issue with one example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to add all the billing amount in between 01/01/2019 4:00 am to 02/01/2019 4:00 am using DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result should be&amp;nbsp; $158 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:15:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/741365#M2289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-16T17:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of values between two DateTime</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/741594#M2297</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;[Total Billing]&lt;/SPAN&gt; =&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; __start = DT1 -- DT1 and DT2 are dates taken from somewhere, possibly a slicer&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; __end = DT2&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; __result =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;calculate&lt;/SPAN&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;sum&lt;/SPAN&gt;( &lt;SPAN&gt;T[Billing]&lt;/SPAN&gt; ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;T[Transaction Date]&lt;/SPAN&gt; &amp;gt;= DT1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;T[Transaction Date]&lt;/SPAN&gt; &amp;lt;= DT2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ALL&lt;/SPAN&gt;( &lt;SPAN&gt;T[Transaction Date]&lt;/SPAN&gt; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__result&lt;/PRE&gt;&lt;P&gt;I'll tell you right away: your model is sub-optimal. If the table you've shown is the fact table and you don't have any dimensions in a one:many relationship with the table, especially Date table and Time table, then you'll very soon be faced with DAX that will not be fast and no amount of fiddling with it will make it so. I'd really suggest you learn about the proper model design before you start building the whole thing &lt;STRONG&gt;WRONGLY&lt;/STRONG&gt;. If after having built 80% of the model you'll find that you've done it incorrectly, think about the amount of work that will go into starting almost all over again...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You've been warned.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 23:18:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sum-of-values-between-two-DateTime/m-p/741594#M2297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-16T23:18:22Z</dc:date>
    </item>
  </channel>
</rss>

