<?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: DAX Weekly YOY in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Weekly-YOY/m-p/1260065#M20953</link>
    <description>&lt;P&gt;&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; Thank you so much! Let me go ahead and try this.&amp;nbsp; I really, really appreciate it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 19:01:17 GMT</pubDate>
    <dc:creator>Newbie_2020</dc:creator>
    <dc:date>2020-07-29T19:01:17Z</dc:date>
    <item>
      <title>DAX Weekly YOY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Weekly-YOY/m-p/1259834#M20935</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I need some help in DAX and I would really really appreciate any inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my Quotes_Year_Wk table&lt;/P&gt;&lt;P&gt;Year_Week&amp;nbsp; &amp;nbsp;Quotes&lt;/P&gt;&lt;P&gt;2019-25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13,582&lt;/P&gt;&lt;P&gt;2019-26&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13,112&lt;/P&gt;&lt;P&gt;2019-27&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12,908&lt;/P&gt;&lt;P&gt;2020-25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20,927&lt;/P&gt;&lt;P&gt;2020-26&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21,126&lt;/P&gt;&lt;P&gt;2020-27&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;26,064&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate weekly YOY for quotes by using Year_Week column&lt;/P&gt;&lt;P&gt;For example, I want to know the YOY change in week 25.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the table above, I want to get&lt;/P&gt;&lt;P&gt;2019-25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13,582&lt;/P&gt;&lt;P&gt;2020-25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20,927&lt;/P&gt;&lt;P&gt;Wk_YOY = 20,927/13,582-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I honestly have a hard time figuring out the correct DAX to get the vakue I needed :'(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;Newbie_2020&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 17:04:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Weekly-YOY/m-p/1259834#M20935</guid>
      <dc:creator>Newbie_2020</dc:creator>
      <dc:date>2020-07-29T17:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Weekly YOY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Weekly-YOY/m-p/1259866#M20938</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="213614" data-lia-user-login="Newbie_2020" class="lia-mention lia-mention-user"&gt;Newbie_2020&lt;/a&gt; , Split year and week .&lt;/P&gt;
&lt;P&gt;year = left([Year_Week ],4)&lt;/P&gt;
&lt;P&gt;Week&amp;nbsp; = right([Year_Week ],2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;better move week year to a new new table and create these columns there. Join on week year with the original table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;YTD Week = CALCULATE(sum('Table'[Quotes]), FILTER(ALL('Date'),'Date'[Week]&amp;lt;=max('Date'[Week]) &amp;amp;&amp;amp; 'Date'[Year]= max('Date'[Year])))&lt;BR /&gt;LYD Week = CALCULATE(sum('Table'[Quotes]), FILTER(ALL('Date'),'Date'[Week ]=max('Date'[Week]) &amp;amp;&amp;amp; 'Date'[Year]= max('Date'[Year])-1 ))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'Date' is new table you have week year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;very similar approach&lt;/P&gt;
&lt;P&gt;Power BI — WTD Questions— Time Intelligence 4–5&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;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 17:17:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Weekly-YOY/m-p/1259866#M20938</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-29T17:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Weekly YOY</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Weekly-YOY/m-p/1260065#M20953</link>
      <description>&lt;P&gt;&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; Thank you so much! Let me go ahead and try this.&amp;nbsp; I really, really appreciate it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:01:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Weekly-YOY/m-p/1260065#M20953</guid>
      <dc:creator>Newbie_2020</dc:creator>
      <dc:date>2020-07-29T19:01:17Z</dc:date>
    </item>
  </channel>
</rss>

