<?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 Filter forcasted dates based on slicer selections in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2189002#M32902</link>
    <description>&lt;P&gt;I hae a dataset where we have forecasts of the price of something based on every day of the year. i.e the forecasted 2022 price based on the 3rd of march, now based on the 4th of march etc.&lt;/P&gt;&lt;P&gt;The data comes through an oracle query and updates live, gathering a rolling 5 year period. And we have two date variables, the current dates, and the forecast period&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is that when you choose the year to look at the forecasts for, using a slicer, I want to only plot the forecasted data which is &amp;gt;= than the selected date.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So for example, the current dates go from 2016-2021 so the forecasts go from 2017 to 2022. When you choose to look at the current dates of 2018, I don't want to display forecasts from 2017 and so on, because the past data is known and not interesting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current hack is to have two slicers where the end user would have to fiddle with both dates, but that is not a clean and intuitive solution. I have included a screenshot of some of the plot where the straight lines are past years of data that I don't want displayed.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Nov 2021 21:40:10 GMT</pubDate>
    <dc:creator>jj6291</dc:creator>
    <dc:date>2021-11-14T21:40:10Z</dc:date>
    <item>
      <title>Filter forcasted dates based on slicer selections</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2189002#M32902</link>
      <description>&lt;P&gt;I hae a dataset where we have forecasts of the price of something based on every day of the year. i.e the forecasted 2022 price based on the 3rd of march, now based on the 4th of march etc.&lt;/P&gt;&lt;P&gt;The data comes through an oracle query and updates live, gathering a rolling 5 year period. And we have two date variables, the current dates, and the forecast period&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is that when you choose the year to look at the forecasts for, using a slicer, I want to only plot the forecasted data which is &amp;gt;= than the selected date.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So for example, the current dates go from 2016-2021 so the forecasts go from 2017 to 2022. When you choose to look at the current dates of 2018, I don't want to display forecasts from 2017 and so on, because the past data is known and not interesting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current hack is to have two slicers where the end user would have to fiddle with both dates, but that is not a clean and intuitive solution. I have included a screenshot of some of the plot where the straight lines are past years of data that I don't want displayed.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 21:40:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2189002#M32902</guid>
      <dc:creator>jj6291</dc:creator>
      <dc:date>2021-11-14T21:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filter forcasted dates based on slicer selections</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2190037#M32916</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338689" data-lia-user-login="jj6291" class="lia-mention lia-mention-user"&gt;jj6291&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this formula&amp;nbsp;&lt;BR /&gt;IF(DateDim[Year]&amp;lt;SELECTEDVALUE([DATEDIM[Year]), BLANK(),&lt;BR /&gt;required measure for Forecast) let me know if that works . Else share the sample data without any classified information.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 10:27:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2190037#M32916</guid>
      <dc:creator>VijayP</dc:creator>
      <dc:date>2021-11-15T10:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter forcasted dates based on slicer selections</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2195561#M32977</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338689" data-lia-user-login="jj6291" class="lia-mention lia-mention-user"&gt;jj6291&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;It sounds like you want to achieve a custom filter effect based on slicer selections instead of filter effect.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If that is the case, I'd like to suggest you create an unconnected date table as the source of the slicer then you can write the measure expression and use it on your visual filter level to apply filter effects.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/articles/applying-a-measure-filter-in-power-bi/" target="_blank"&gt;Applying a measure filter in Power BI - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/articles/deep-dive-into-measure-filters-in-power-bi-desktop/" target="_blank"&gt;Deep dive into measure filters in Power BI Desktop - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 01:44:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2195561#M32977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-18T01:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter forcasted dates based on slicer selections</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2200136#M33026</link>
      <description>&lt;P&gt;Hi, thanks for the suggestion. I ended up doing something similar. I made a new table and set columns up for overlapping periods and then made a 3rd table where I unpivoted the data manually. I think it was a bit overkill&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 22:09:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-forcasted-dates-based-on-slicer-selections/m-p/2200136#M33026</guid>
      <dc:creator>jj6291</dc:creator>
      <dc:date>2021-11-21T22:09:21Z</dc:date>
    </item>
  </channel>
</rss>

