<?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: How to build dynamic X-axis showing four weeks back depends on week selected in slicer? in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/4001588#M9963</link>
    <description>&lt;P&gt;Thanks for your input! Unfortunately, that is not the same scenario. In my case we want to show data for 4 weeks back depends what week the user selects in slicer.&amp;nbsp; so if user selects week 14 of the year, I want to see weeks: 11,12,13 and 14 on my X axis, when user selects week 20 -- I want X axis to adjust to show 17,18,19, 20.... for some reason filtering does not interact well whit selected value..&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 09:19:00 GMT</pubDate>
    <dc:creator>pola</dc:creator>
    <dc:date>2024-06-20T09:19:00Z</dc:date>
    <item>
      <title>How to build dynamic X-axis showing four weeks back depends on week selected in slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/3993037#M9929</link>
      <description>&lt;P&gt;I want to build the line chart showing 4 data point after 4 consecutive weeks. My users select a given week in the slicer and the line chart displays 4 weeks back in cluding selected week. I specificly struggle to build the measure which accepts dynamic max and mix constraints... Any idea?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 09:27:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/3993037#M9929</guid>
      <dc:creator>pola</dc:creator>
      <dc:date>2024-06-14T09:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dynamic X-axis showing four weeks back depends on week selected in slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/3993495#M9931</link>
      <description>&lt;P&gt;I did something similar, wanting to display the previous 13 weeks data. I may not have done it the easiest way possible, but it does work for me. Hopefully it will help you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, I created a new column to calculate the report date which is based on the date of the previous Saturday. Our weeks are viewed Sunday thru Saturday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WKLY_RPT_ENDDATE = TODAY()-WEEKDAY(TODAY())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then assigned a number for each of the previous weeks, calling this "WEEKSAGO"&lt;/P&gt;&lt;P&gt;WEEKSAGO = FLOOR((-(DATEDIFF(SOURCE_TABLE[WKLY_RPT_ENDDATE],SOURCE_TABLE[ARRIVALDATE].[Date],DAY))/7)+1,1)&lt;/P&gt;&lt;P&gt;When I build my visualizations, I place a filter for WEEKSAGO&amp;gt;0 and WEEKSAGO&amp;lt;14&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 14:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/3993495#M9931</guid>
      <dc:creator>RPYee</dc:creator>
      <dc:date>2024-06-14T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dynamic X-axis showing four weeks back depends on week selected in slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/4001588#M9963</link>
      <description>&lt;P&gt;Thanks for your input! Unfortunately, that is not the same scenario. In my case we want to show data for 4 weeks back depends what week the user selects in slicer.&amp;nbsp; so if user selects week 14 of the year, I want to see weeks: 11,12,13 and 14 on my X axis, when user selects week 20 -- I want X axis to adjust to show 17,18,19, 20.... for some reason filtering does not interact well whit selected value..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 09:19:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/4001588#M9963</guid>
      <dc:creator>pola</dc:creator>
      <dc:date>2024-06-20T09:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dynamic X-axis showing four weeks back depends on week selected in slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/4001927#M9964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/399416"&gt;@pola&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This video might help you take an approach this is not exact solution for sure but with some modification it should work:&amp;nbsp;&lt;BR /&gt;1.&amp;nbsp;&lt;A href="https://youtu.be/uQPXYW79m3A?si=FaJo5MkYOtt0Q0X4" target="_blank"&gt;https://youtu.be/uQPXYW79m3A?si=FaJo5MkYOtt0Q0X4&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. &lt;A href="https://youtu.be/GTHVXaKseZw?si=F8CvQelCGR4N-ZpL" target="_blank"&gt;https://youtu.be/GTHVXaKseZw?si=PYSJYlO4iVwGrz-G&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!&lt;BR /&gt;Check for more intersing solution here:&amp;nbsp;&lt;A class="" href="http://www.youtube.com/@Howtosolveprobem" target="_blank" rel="noopener nofollow noreferrer"&gt;www.youtube.com/@Howtosolveprobem&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 12:11:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/4001927#M9964</guid>
      <dc:creator>qqqqqwwwweeerrr</dc:creator>
      <dc:date>2024-06-20T12:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to build dynamic X-axis showing four weeks back depends on week selected in slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/4003759#M9974</link>
      <description>&lt;P&gt;Hi, just in case, this vidoe helped us out to find a solution. Very cool.&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=d8Rm7dwM6gc&amp;amp;t=785s" target="_blank"&gt;Show last 6 months based on user single slicer selection (youtube.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 09:30:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-to-build-dynamic-X-axis-showing-four-weeks-back-depends-on/m-p/4003759#M9974</guid>
      <dc:creator>pola</dc:creator>
      <dc:date>2024-06-21T09:30:40Z</dc:date>
    </item>
  </channel>
</rss>

