<?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: Forecast Days Parameter in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Days-Parameter-in-DAX/m-p/2560539#M72819</link>
    <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8368" data-lia-user-login="ralph_schroeder" class="lia-mention lia-mention-user"&gt;ralph_schroeder&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can create a Numeric parameter, and use the DATEADD function&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(
         [measure],
            DATEADD('Dates'[Date],
                [Value "Parameter"],
                DAY)
            )&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 06 Jun 2022 08:22:29 GMT</pubDate>
    <dc:creator>DimaMD</dc:creator>
    <dc:date>2022-06-06T08:22:29Z</dc:date>
    <item>
      <title>Forecast Days Parameter in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Days-Parameter-in-DAX/m-p/2559702#M72782</link>
      <description>&lt;P&gt;In Report Builder, I have a task activity table with due date.&amp;nbsp; I want to have a user select a report parameter "Forecast Days" (=7 days, 30 days, 90 days) that filters the task due date.&amp;nbsp; So for example, selecting "30 Days" the table will show task due dates between today and +30 days.&amp;nbsp; What is the DAX for this?&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2022 20:11:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Days-Parameter-in-DAX/m-p/2559702#M72782</guid>
      <dc:creator>ralph_schroeder</dc:creator>
      <dc:date>2022-06-05T20:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Days Parameter in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Days-Parameter-in-DAX/m-p/2560539#M72819</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8368" data-lia-user-login="ralph_schroeder" class="lia-mention lia-mention-user"&gt;ralph_schroeder&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can create a Numeric parameter, and use the DATEADD function&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(
         [measure],
            DATEADD('Dates'[Date],
                [Value "Parameter"],
                DAY)
            )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Jun 2022 08:22:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Days-Parameter-in-DAX/m-p/2560539#M72819</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2022-06-06T08:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Days Parameter in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Days-Parameter-in-DAX/m-p/2566183#M73128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8368" data-lia-user-login="ralph_schroeder" class="lia-mention lia-mention-user"&gt;ralph_schroeder&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a table like below and use it as slicer.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a measure like below and add it to visual filter set value = 1.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    SELECTEDVALUE ( 'Table'[Date] ) &amp;lt;= TODAY ()
        &amp;amp;&amp;amp; SELECTEDVALUE ( 'Table'[Date] )
            &amp;gt; TODAY () - SELECTEDVALUE ( slicer[slicer] ),
    1
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&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;Jay&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 09:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Days-Parameter-in-DAX/m-p/2566183#M73128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-08T09:46:27Z</dc:date>
    </item>
  </channel>
</rss>

