<?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 on week trend to show last 5 weeks based on year ,month and week selections in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-on-week-trend-to-show-last-5-weeks-based-on-year-month-and/m-p/3095824#M108633</link>
    <description>&lt;P&gt;Thank you But the other charts in the report should show only the selected week data.Can we achieve this along with the 4 weeks trend using a single slicer&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 15:45:56 GMT</pubDate>
    <dc:creator>ann33</dc:creator>
    <dc:date>2023-02-23T15:45:56Z</dc:date>
    <item>
      <title>Week on week trend to show last 5 weeks based on year ,month and week selections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-on-week-trend-to-show-last-5-weeks-based-on-year-month-and/m-p/3083992#M107659</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date column from which I need to plot a line graph with weeks in axis.I ahve year,month and week filter.If the selections are year-2022,month- Feb ,Week - WK7,then graph should show WK3,WK4,WK5,WK6,WK7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requesting the guidance.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 20:33:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-on-week-trend-to-show-last-5-weeks-based-on-year-month-and/m-p/3083992#M107659</guid>
      <dc:creator>ann33</dc:creator>
      <dc:date>2023-02-16T20:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Week on week trend to show last 5 weeks based on year ,month and week selections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-on-week-trend-to-show-last-5-weeks-based-on-year-month-and/m-p/3085195#M107777</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="503617" data-lia-user-login="ann33" class="lia-mention lia-mention-user"&gt;ann33&lt;/a&gt; , if you want to select a week and then display 5 weeks , you need two date table on joined and another one independent for slicer &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Date1 is independent Date table, Date is joined with Table &lt;BR /&gt;new measure =&lt;BR /&gt;var _max = maxx(allselected(Date1),Date1[week Rank])&lt;BR /&gt;var _min = _max -5&lt;BR /&gt;return &lt;BR /&gt;calculate( sum(Table[Value]), filter('Date', 'Date'[week Rank] &amp;gt;=_min &amp;amp;&amp;amp; 'Date'[week Rank] &amp;lt;=_max))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For week rank, create new column in both date tables &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have these new columns in Date Table, Week Rank is Important in Date/Week Table&lt;/P&gt;
&lt;P&gt;Week Rank = RANKX('Date','Date'[Week Start date],,ASC,Dense) &lt;BR /&gt;OR&lt;BR /&gt;Week Rank = RANKX('Date','Date'[Year Week],,ASC,Dense) //YYYYWW format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need of an Independent Date Table:&lt;A href="https://www.youtube.com/watch?v=44fGGmg9fHI" target="_blank"&gt;https://www.youtube.com/watch?v=44fGGmg9fHI&lt;/A&gt;&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;</description>
      <pubDate>Fri, 17 Feb 2023 14:32:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-on-week-trend-to-show-last-5-weeks-based-on-year-month-and/m-p/3085195#M107777</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-02-17T14:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Week on week trend to show last 5 weeks based on year ,month and week selections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-on-week-trend-to-show-last-5-weeks-based-on-year-month-and/m-p/3095824#M108633</link>
      <description>&lt;P&gt;Thank you But the other charts in the report should show only the selected week data.Can we achieve this along with the 4 weeks trend using a single slicer&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:45:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-on-week-trend-to-show-last-5-weeks-based-on-year-month-and/m-p/3095824#M108633</guid>
      <dc:creator>ann33</dc:creator>
      <dc:date>2023-02-23T15:45:56Z</dc:date>
    </item>
  </channel>
</rss>

