<?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 Charts must show up only previous week data depending on the Max date selected in Date Slicer. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4096246#M54716</link>
    <description>&lt;P&gt;Hello, I am looking for a solution where the data display on chart must show up only the data Previous week data depending on the&amp;nbsp;user selection on Date slicer. For example if the user selects the Date Range (28.08.23 to 13.08.24), the chart must display the the data from 05.08.24 to 11.08.24 and if the user select a different date range say 01.01.24 to 31.01.24 then depending on the Max date(31.01.24), the charts must display (22.01.24 to 28.01.24). I created a weekoffset column and applied weekoffset is -1 in filterpane for the chart visual. This works for the default max date (Today)&amp;nbsp; but when the user selects a different date range then the chart goes blank. Also, I created 'IsInLastWeek' column in date table using dax and applied it on chart visual and selected 1.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IsInLastWeek =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[isInCurrentYear]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[Week]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()) - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) but this also works similar to Week Offset, which does not satisfy the dynamic date selection in date slicer.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 13 Aug 2024 00:09:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-13T00:09:48Z</dc:date>
    <item>
      <title>Charts must show up only previous week data depending on the Max date selected in Date Slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4096246#M54716</link>
      <description>&lt;P&gt;Hello, I am looking for a solution where the data display on chart must show up only the data Previous week data depending on the&amp;nbsp;user selection on Date slicer. For example if the user selects the Date Range (28.08.23 to 13.08.24), the chart must display the the data from 05.08.24 to 11.08.24 and if the user select a different date range say 01.01.24 to 31.01.24 then depending on the Max date(31.01.24), the charts must display (22.01.24 to 28.01.24). I created a weekoffset column and applied weekoffset is -1 in filterpane for the chart visual. This works for the default max date (Today)&amp;nbsp; but when the user selects a different date range then the chart goes blank. Also, I created 'IsInLastWeek' column in date table using dax and applied it on chart visual and selected 1.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IsInLastWeek =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[isInCurrentYear]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[Week]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()) - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) but this also works similar to Week Offset, which does not satisfy the dynamic date selection in date slicer.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Aug 2024 00:09:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4096246#M54716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T00:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Charts must show up only previous week data depending on the Max date selected in Date Slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4096455#M54717</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me explain why your data doesn't change dynamically based on the slicer.&lt;/P&gt;
&lt;P&gt;The key is that the value of a calculated column is static and is not affected by slicers or other visuals, I suggest you using measure instead. I’ve made a test for your reference:&lt;/P&gt;
&lt;P&gt;1\I assume there is a table named Tabelle1&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2\Create a calculate table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CalendarTable = CALENDAR(date(2024,1,1),date(2024,12,31))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3\Create a measure for Tabelle1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IsInLastWeek = If(WEEKNUM(Max(Tabelle1[Date]))=Weeknum(Max(CalendarTable[Date]))-1,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4\Add a slider&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;5\Filter data&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Bof&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 02:11:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4096455#M54717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-14T02:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Charts must show up only previous week data depending on the Max date selected in Date Slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4097598#M54737</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not able to access the PBI file you have shared. As it comes in Zip folder and when I extract, it says This file is restricted.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 12:39:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4097598#M54737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T12:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Charts must show up only previous week data depending on the Max date selected in Date Slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4098919#M54756</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've reuploaded the attachment. Kindly take a moment to review it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Bof&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 02:19:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Charts-must-show-up-only-previous-week-data-depending-on-the-Max/m-p/4098919#M54756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-14T02:19:54Z</dc:date>
    </item>
  </channel>
</rss>

