<?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 CALCULATE SUM for specific range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303587#M56968</link>
    <description>&lt;P&gt;Hi experts!&lt;/P&gt;&lt;P&gt;I have a calendar, a dimensional and a transactional table.&lt;/P&gt;&lt;P&gt;Then I have a matrix that is filtered for the current week.&lt;/P&gt;&lt;P&gt;This matrix shows me the sales for the current week.&lt;/P&gt;&lt;P&gt;In addition, I would like to get the sales (table transactional) that happened between the last Saturday and today.&lt;/P&gt;&lt;P&gt;How is this possible by using DAX?&lt;/P&gt;&lt;P&gt;CALCULATE with REMOVEFILTERS?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 18:45:56 GMT</pubDate>
    <dc:creator>joshua1990</dc:creator>
    <dc:date>2022-01-26T18:45:56Z</dc:date>
    <item>
      <title>CALCULATE SUM for specific range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303587#M56968</link>
      <description>&lt;P&gt;Hi experts!&lt;/P&gt;&lt;P&gt;I have a calendar, a dimensional and a transactional table.&lt;/P&gt;&lt;P&gt;Then I have a matrix that is filtered for the current week.&lt;/P&gt;&lt;P&gt;This matrix shows me the sales for the current week.&lt;/P&gt;&lt;P&gt;In addition, I would like to get the sales (table transactional) that happened between the last Saturday and today.&lt;/P&gt;&lt;P&gt;How is this possible by using DAX?&lt;/P&gt;&lt;P&gt;CALCULATE with REMOVEFILTERS?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 18:45:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303587#M56968</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-01-26T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE SUM for specific range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303604#M56971</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;Correct, you could use REMOVEFILTERS or ALL/ALLEXCEPT in order to override filter context within the measure. Sample data would allow more specificity.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 19:02:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303604#M56971</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-01-26T19:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE SUM for specific range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303688#M56978</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;: Thanks a lot! How can the range be specified in the function? Any logic that you can share here?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 19:57:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303688#M56978</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2022-01-26T19:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE SUM for specific range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303972#M56994</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;Well, you could find the last Saturday by doing something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Calendar = ADDCOLUMNS(CALENDAR(TODAY()-7,TODAY()),"__Weekday",WEEKDAY([Date],2))
  VAR __LastSaturday = MINX(FILTER(__Calendar,[__Weekday]=6),[Date])
RETURN
  CALCULATE([someting],ALL('Dates'),'Dates'[Date]&amp;gt;=__LastSaturday,'Dates'[Date]&amp;lt;=TODAY())&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Jan 2022 23:20:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-SUM-for-specific-range/m-p/2303972#M56994</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-01-26T23:20:30Z</dc:date>
    </item>
  </channel>
</rss>

