<?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: Week over Week comparison by country in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2308094#M57274</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Thanks for the info provided. Unfortunately the Last Week/ This Week measures add up ALL of the sales as per screenshot below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In my original script I do use remove filters[nvoice Date] and in the SUMX of Sales and i do get correct weekly sales. It is the delta between week one and week two that does not work.&lt;/P&gt;&lt;P&gt;Happy to share a sample so you have a clearer picture.&lt;/P&gt;&lt;P&gt;The week Rank though seems to work correctly:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 16:23:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-01-28T16:23:46Z</dc:date>
    <item>
      <title>Week over Week comparison by country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2305408#M57063</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a weekly sales measure and a Week on Week measure that calculates the change of sales over week under the same table.&lt;/P&gt;&lt;P&gt;On a total sales aspect it works fine.&lt;/P&gt;&lt;P&gt;When I add the Country it takes sales of week 2 for the specific country and subtracts it from total sales of week 1.&lt;/P&gt;&lt;P&gt;So for UK&amp;amp;I it takes week 2 sales 115784 and subtracts from total group sales of week one, 2,501,074.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I have to change to obtain weekly difference by country?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 14:47:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2305408#M57063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-27T14:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week comparison by country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2305464#M57067</link>
      <description>&lt;P&gt;hi.there you need to calculate week ranks insted of week measure but i am not sure&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 15:09:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2305464#M57067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-27T15:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week comparison by country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2305466#M57068</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , For that, is better to have a separate date/week table with week rank on year week. In same table all will remove other filter from the context&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new column&lt;/P&gt;
&lt;P&gt;Week Rank = RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measures &lt;BR /&gt;This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))&lt;BR /&gt;Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Week on Week and WTD &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=pnAesWxYgJ8" target="_blank"&gt;https://www.youtube.com/watch?v=pnAesWxYgJ8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 15:10:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2305466#M57068</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-27T15:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week comparison by country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2305478#M57073</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I recommend cheking this post about a similar topic:&lt;BR /&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/Week-over-Week-Change/m-p/243318" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Week-over-Week-Change/m-p/243318&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;The Week over week calculations presented there should solve your issue.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jan 2022 15:15:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2305478#M57073</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-27T15:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week comparison by country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2306192#M57142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check this post:&amp;nbsp;&lt;A href="https://www.vahiddm.com/post/weekly-time-intelligence-dax" target="_blank"&gt;https://www.vahiddm.com/post/weekly-time-intelligence-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 21:47:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2306192#M57142</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-01-27T21:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week comparison by country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2308094#M57274</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Thanks for the info provided. Unfortunately the Last Week/ This Week measures add up ALL of the sales as per screenshot below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In my original script I do use remove filters[nvoice Date] and in the SUMX of Sales and i do get correct weekly sales. It is the delta between week one and week two that does not work.&lt;/P&gt;&lt;P&gt;Happy to share a sample so you have a clearer picture.&lt;/P&gt;&lt;P&gt;The week Rank though seems to work correctly:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 16:23:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-comparison-by-country/m-p/2308094#M57274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-28T16:23:46Z</dc:date>
    </item>
  </channel>
</rss>

