<?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 Week Over Week DAX Count for Previous Week in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-Over-Week-DAX-Count-for-Previous-Week/m-p/3535835#M135871</link>
    <description>&lt;P&gt;I've created a measure that uses calculated columns that counts rows with a specific value, see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Calls This Week = CALCULATE(COUNTROWS(AllContacts),FILTER(AllContacts,AllContacts[Contact_System]="Call Center"),FILTER(ALL(AllContacts),AllContacts[WeekRank]=MAX(AllContacts[WeekRank])))&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This expression works &amp;amp; gives me an accurate number of calls for a given week with the filter applied for only rows with "Call Center". The next step would be to calculate the same data for the previous week. The DAX I wrote for that purpose is very similar below, but does not return anything.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;Calls Last Week = CALCULATE(COUNTROWS(AllContacts),FILTER(AllContacts,AllContacts[Contact_System]="Call Center"),FILTER(ALL(AllContacts),AllContacts[WeekRank]=MAX(AllContacts[WeekRank])-1))&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I subtract 1 from the week rank to return the previous week, but this does not prove to be useful. Anyone familiar with this issue?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Nov 2023 21:22:55 GMT</pubDate>
    <dc:creator>ULTRAVI0LENCE</dc:creator>
    <dc:date>2023-11-15T21:22:55Z</dc:date>
    <item>
      <title>Week Over Week DAX Count for Previous Week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-Over-Week-DAX-Count-for-Previous-Week/m-p/3535835#M135871</link>
      <description>&lt;P&gt;I've created a measure that uses calculated columns that counts rows with a specific value, see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Calls This Week = CALCULATE(COUNTROWS(AllContacts),FILTER(AllContacts,AllContacts[Contact_System]="Call Center"),FILTER(ALL(AllContacts),AllContacts[WeekRank]=MAX(AllContacts[WeekRank])))&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This expression works &amp;amp; gives me an accurate number of calls for a given week with the filter applied for only rows with "Call Center". The next step would be to calculate the same data for the previous week. The DAX I wrote for that purpose is very similar below, but does not return anything.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;Calls Last Week = CALCULATE(COUNTROWS(AllContacts),FILTER(AllContacts,AllContacts[Contact_System]="Call Center"),FILTER(ALL(AllContacts),AllContacts[WeekRank]=MAX(AllContacts[WeekRank])-1))&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I subtract 1 from the week rank to return the previous week, but this does not prove to be useful. Anyone familiar with this issue?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Nov 2023 21:22:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-Over-Week-DAX-Count-for-Previous-Week/m-p/3535835#M135871</guid>
      <dc:creator>ULTRAVI0LENCE</dc:creator>
      <dc:date>2023-11-15T21:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Week Over Week DAX Count for Previous Week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-Over-Week-DAX-Count-for-Previous-Week/m-p/3536066#M135876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="646932" data-lia-user-login="ULTRAVI0LENCE" class="lia-mention lia-mention-user"&gt;ULTRAVI0LENCE&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try like:&lt;/P&gt;
&lt;DIV&gt;CountPreviousWeekColumn=&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;COUNTROWS(&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;FILTER(&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;AllContacts,&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;AllContacts[Contact_System]="Call Center"&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp;&lt;/SPAN&gt;AllContacts[WeekRank] = EARLIER(AllContacts[WeekRank]) -1&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt; &lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 01:55:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-Over-Week-DAX-Count-for-Previous-Week/m-p/3536066#M135876</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-16T01:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Week Over Week DAX Count for Previous Week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-Over-Week-DAX-Count-for-Previous-Week/m-p/3537533#M135932</link>
      <description>&lt;P&gt;Thank you for the reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The EARLIER DAX expression does not accept my column&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;AllContacts[WeekRank]&lt;/EM&gt; as a parameter. An error is thrown on this specific parameter. Any tips on this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 16:49:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-Over-Week-DAX-Count-for-Previous-Week/m-p/3537533#M135932</guid>
      <dc:creator>ULTRAVI0LENCE</dc:creator>
      <dc:date>2023-11-16T16:49:15Z</dc:date>
    </item>
  </channel>
</rss>

