<?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: Sales Between Two Days, Not Date. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2468515#M67129</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377838" data-lia-user-login="it_akasjraj" class="lia-mention lia-mention-user"&gt;it_akasjraj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following methods.&amp;nbsp;Because I replied to your post on April 21, I subtracted three days from each today date to get the date of your original post on April 18.&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Today = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="APPS"&amp;amp;&amp;amp;[Date]=TODAY()-3))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="NON APPS"&amp;amp;&amp;amp;[Date]=TODAY()-3))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Last 7 Days = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-1&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-7))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="NON APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-1&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-7))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Last 8 To 15 Days = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER('Table',[Product]="APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-8&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-8-14))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER('Table',[Product]="NON APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-8&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-8-14))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Last 16 To 30 Days = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-23&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-37))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="NON APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-23&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-37))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;More Than 30 Days = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="APPS"&amp;amp;&amp;amp;[Date]&amp;lt;TODAY()-3-37))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="NON APPS"&amp;amp;&amp;amp;[Date]&amp;lt;TODAY()-3-37))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this what you expect? It can be compared with the data you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 09:31:40 GMT</pubDate>
    <dc:creator>v-zhangti</dc:creator>
    <dc:date>2022-04-21T09:31:40Z</dc:date>
    <item>
      <title>Sales Between Two Days, Not Date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2461358#M66633</link>
      <description>&lt;P&gt;Please find screenshot for better understanding,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue Is:&lt;/P&gt;&lt;P&gt;I have to calculate the sum of &lt;STRONG&gt;Sales Amount&lt;/STRONG&gt; column only for two product i.e "APPS" And "NONAPPS", For Today, For Last 7 Days, For Last 8 To 15 Days, For Last 15 To 30 Days, More Than 30 Days.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today Means&lt;/STRONG&gt; - Sum Of Today i.e 18-04-2022 Sales For APPS And NONAPPS Product category.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Last 7 Days Means&lt;/STRONG&gt; - Sum Of Sales Between Yesterday i.e. 17-04-2022 To 7 Days Back i.e. 11-04-2022, For APPS And NONAPPS Product category.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Last 8 To 15 Days Means&lt;/STRONG&gt; - Sum Of Sales Between 10-04-2022 To 27-03-2022, For APPS And NONAPPS Product category.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Last 16 To 30 Days Means&lt;/STRONG&gt; - Sum Of Sales Between 26-03-2022 To 12-03-2022, For APPS And NONAPPS Product category.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;More Than 30 Days Means&lt;/STRONG&gt; - Sum Of Sales Happened Before 12-03-2022.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset Is Attached.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1_t2I2Cd_26VHEals6KzG107udUY49516/edit?usp=sharing&amp;amp;ouid=113933251912411182750&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1_t2I2Cd_26VHEals6KzG107udUY49516/edit?usp=sharing&amp;amp;ouid=113933251912411182750&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measures Has To Be Individual So Total 5 Measures I Have To Create, Please Help Me Community And Experts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 10:48:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2461358#M66633</guid>
      <dc:creator>it_akasjraj</dc:creator>
      <dc:date>2022-04-18T10:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Between Two Days, Not Date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2461392#M66637</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377838" data-lia-user-login="it_akasjraj" class="lia-mention lia-mention-user"&gt;it_akasjraj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no need to create 5 measures.&amp;nbsp;&lt;BR /&gt;You can create a disconnected table that contains the Day values:&lt;/P&gt;&lt;P&gt;Selection &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Last 7 Days &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;etc.&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;you can do it in excel or any way makes comfortable.&amp;nbsp;&lt;BR /&gt;Use this table to create a slicer or drag in to your matix columns then modify your measure to adapt for SELECTEDVALUE instead of hard coding a fixed number for each measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 11:10:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2461392#M66637</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-18T11:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Between Two Days, Not Date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2468515#M67129</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377838" data-lia-user-login="it_akasjraj" class="lia-mention lia-mention-user"&gt;it_akasjraj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following methods.&amp;nbsp;Because I replied to your post on April 21, I subtracted three days from each today date to get the date of your original post on April 18.&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Today = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="APPS"&amp;amp;&amp;amp;[Date]=TODAY()-3))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="NON APPS"&amp;amp;&amp;amp;[Date]=TODAY()-3))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Last 7 Days = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-1&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-7))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="NON APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-1&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-7))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Last 8 To 15 Days = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER('Table',[Product]="APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-8&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-8-14))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER('Table',[Product]="NON APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-8&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-8-14))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Last 16 To 30 Days = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-23&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-37))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="NON APPS"&amp;amp;&amp;amp;[Date]&amp;lt;=TODAY()-3-23&amp;amp;&amp;amp;[Date]&amp;gt;=TODAY()-3-37))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;More Than 30 Days = 
CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="APPS"&amp;amp;&amp;amp;[Date]&amp;lt;TODAY()-3-37))
+CALCULATE(SUM('Table'[Sales Amount]),FILTER(ALL('Table'),[Product]="NON APPS"&amp;amp;&amp;amp;[Date]&amp;lt;TODAY()-3-37))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this what you expect? It can be compared with the data you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 09:31:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2468515#M67129</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-04-21T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Between Two Days, Not Date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2469331#M67188</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I added a few days to your dataset to bring to today. There is a Date Table with a Day Index on the attached file. This was used along with a measure selector table to obtain results. Should make it easy for user to select:-)&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;A title="Period Sales App Non-App" href="https://drive.google.com/file/d/1p27ItKxLyGYFc0eVol3q0hKfziEC5_9X/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1p27ItKxLyGYFc0eVol3q0hKfziEC5_9X/view?usp=sharing&lt;/A&gt;&amp;nbsp;&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;</description>
      <pubDate>Thu, 21 Apr 2022 14:31:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2469331#M67188</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-21T14:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Between Two Days, Not Date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2469467#M67195</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;When you upload the file you will see all three broken out by period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1p27ItKxLyGYFc0eVol3q0hKfziEC5_9X/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1p27ItKxLyGYFc0eVol3q0hKfziEC5_9X/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;App &amp;amp; Non-App&lt;/P&gt;&lt;P&gt;App&lt;/P&gt;&lt;P&gt;Non-App&lt;/P&gt;&lt;P&gt;For instance if you choose Last 7 Days:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 15:35:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Between-Two-Days-Not-Date/m-p/2469467#M67195</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-21T15:35:33Z</dc:date>
    </item>
  </channel>
</rss>

