<?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: Dynamic input for filters in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2559829#M36508</link>
    <description>&lt;P&gt;That is standard functionality in the filter pane. All you need to do (in the options) is to allow report users to change filter types.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 01:27:28 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-06-06T01:27:28Z</dc:date>
    <item>
      <title>Dynamic input for filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2558298#M36495</link>
      <description>&lt;P&gt;Does power bi have the ability to build something like an input box where a user can enter a number and filtering is done according to that number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example the ability to show sales and quantity sold over a period of time and the user can decide if they want to see it by the past 7 days,&amp;nbsp; 45 days,&amp;nbsp; 180 days.&amp;nbsp;&amp;nbsp; Whichever they would prefer to see.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 15:49:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2558298#M36495</guid>
      <dc:creator>tbrown33</dc:creator>
      <dc:date>2022-06-03T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input for filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2559829#M36508</link>
      <description>&lt;P&gt;That is standard functionality in the filter pane. All you need to do (in the options) is to allow report users to change filter types.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 01:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2559829#M36508</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-06-06T01:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input for filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2560781#M36522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/348303"&gt;@tbrown33&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to use what if parameter to create a slicer.&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if" target="_self"&gt;Create and use what-if parameters to visualize variables in Power BI Desktop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In my sample I create a 'Past Days' parameter from 1 to 200 and Increment is 1. My data table contains quantities from 2021/01/01 to today.&amp;nbsp;In my example, for ease of calculation, the daily quantity is 1.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Past N days Quantity = 
VAR _INPUT_DAYS =
    SELECTEDVALUE ( 'Past Days'[Past Days] )
VAR _QUANTITY =
    CALCULATE (
        SUM ( 'Table'[Quantity] ),
        FILTER (
            'Table',
            'Table'[Date] &amp;lt; TODAY ()
                &amp;amp;&amp;amp; 'Table'[Date]
                    &amp;gt;= TODAY () - _INPUT_DAYS
        )
    )
RETURN
    _QUANTITY&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;Past 7 days:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1654508286781.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/727286iA7315881431AAECE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1654508286781.png" alt="RicoZhou_0-1654508286781.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Past 180 days:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_1-1654508308413.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/727288iA2ECE4C6896C5566/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_1-1654508308413.png" alt="RicoZhou_1-1654508308413.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 09:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2560781#M36522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-06T09:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic input for filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2561408#M36527</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks, someone showed me the relative date option within the slicer.&amp;nbsp; This will be the option my users would enjoy using.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbrown33_0-1654526007544.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/727441iBF76D0000E65F95F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbrown33_0-1654526007544.png" alt="tbrown33_0-1654526007544.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 14:33:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-input-for-filters/m-p/2561408#M36527</guid>
      <dc:creator>tbrown33</dc:creator>
      <dc:date>2022-06-06T14:33:38Z</dc:date>
    </item>
  </channel>
</rss>

