<?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 difference in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-difference/m-p/3814063#M149167</link>
    <description>&lt;P&gt;hi all, probably this is super easy, but i struggle with it, i need to present on below matrix table difference week over week just for the last two periods (in below between 20 and 27 march), so it basically should show me &lt;STRONG&gt;-22 etc.&lt;/STRONG&gt; i did it in excel but we moved to power bi. this is a count of lines. i also have the same with sum of import.&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;could you please help me how to do it? i tried with calculate and max or with dates in period. but it shows me strange results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 15:54:46 GMT</pubDate>
    <dc:creator>martaTr</dc:creator>
    <dc:date>2024-04-05T15:54:46Z</dc:date>
    <item>
      <title>Week over Week difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-difference/m-p/3814063#M149167</link>
      <description>&lt;P&gt;hi all, probably this is super easy, but i struggle with it, i need to present on below matrix table difference week over week just for the last two periods (in below between 20 and 27 march), so it basically should show me &lt;STRONG&gt;-22 etc.&lt;/STRONG&gt; i did it in excel but we moved to power bi. this is a count of lines. i also have the same with sum of import.&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;could you please help me how to do it? i tried with calculate and max or with dates in period. but it shows me strange results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 15:54:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-difference/m-p/3814063#M149167</guid>
      <dc:creator>martaTr</dc:creator>
      <dc:date>2024-04-05T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-difference/m-p/3814141#M149175</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399792" data-lia-user-login="martaTr" class="lia-mention lia-mention-user"&gt;martaTr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you have a weeknum column in your dataset, that maybe used. ( for more context:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=F78emhTBX88" target="_blank"&gt;How to Calculate Week over Week Change in Power BI (youtube.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you could explore if the&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=KWWZZp-2dSY" target="_blank"&gt;(52) Calculate Growth From Previous Non Consecutive Date - YouTube&lt;/A&gt;&amp;nbsp;may be a better fit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another alternative maybe to explore&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/dateadd-function-dax" target="_blank"&gt;DATEADD function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly provide a sample input table masking sensitive data if this doesn't work for you.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 16:53:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-difference/m-p/3814141#M149175</guid>
      <dc:creator>adudani</dc:creator>
      <dc:date>2024-04-05T16:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-difference/m-p/3853554#M150560</link>
      <description>&lt;P&gt;thank you, it seems like it's working, however i am wondering how can i this new metric WoW add to the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure3 = 
VAR LastDate1 =
    MAXX ( ALLSELECTED ( Affinity[As of Date] ), Affinity[As of Date] )
VAR LastSales =
    CALCULATE (
        COUNT ( [Importo] ),
        FILTER ( ALL ( Affinity[As of Date] ), Affinity[As of Date] = LastDate1 )
    )
VAR PrevDate =
    MAXX (
        FILTER ( ALL ( Affinity[As of Date] ), 'Affinity'[As of Date] &amp;lt; LastDate1 ),
        Affinity[As of Date]
    )
VAR PrevSales =
    CALCULATE (
        COUNT ( [Importo] ),
        FILTER ( ALL ( Affinity[As of Date] ), Affinity[As of Date] = PrevDate )
    )
RETURN
    IF ( ISBLANK ( PrevDate ), BLANK (), LastSales - PrevSales )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it doesnt work when i normally add it to columns/ rows/values.Now it's in seprate table hidden under a main one which doesnt look good and it 's completely impractical. Any ideas how to present that metric? maybe other chart?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 11:48:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-difference/m-p/3853554#M150560</guid>
      <dc:creator>martaTr</dc:creator>
      <dc:date>2024-04-19T11:48:09Z</dc:date>
    </item>
  </channel>
</rss>

