<?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: Filter using What if parameter in a formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2298860#M56702</link>
    <description>&lt;P&gt;Hi, many thanks for your swift response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried updating my formula as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Dynamic check = &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Pipeline year'&lt;/SPAN&gt;&lt;SPAN&gt;[Pipeline year Value]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Pipeline[Year enters pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Pipeline[Year leaves pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However DAX says that Pipeline year Value may not be used in this expression. The expression works if I use [Pipeline year], ie the range of years in the Whatif parameter), but changing the slider has no effect.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 24 Jan 2022 15:25:54 GMT</pubDate>
    <dc:creator>jonbrooker</dc:creator>
    <dc:date>2022-01-24T15:25:54Z</dc:date>
    <item>
      <title>Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2298797#M56698</link>
      <description>&lt;P&gt;Hi, I'm trying to find a way of filtering a report based on a simple calculation using the value set by the user on the dashboard, but I just can't find any way to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I want to know which records were live ('in the pipeline') in the selected year. Using various dates I have calculated the year each record enters the pipeline and the year it leaves. The idea being to then filter the report using a column containing this formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Pipeline check = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Year enters pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;={Selected year]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Year leaves pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;[Selected year]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I want the [Selected year] to be set by a slider on the dashboard, so I have a 'what if' parameter called 'Pipeline year', but the filter stops working when the parameter value is entered into the formula.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Dynamic check = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Year enters pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Pipeline year'&lt;/SPAN&gt;&lt;SPAN&gt;[Pipeline year Value]&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Year leaves pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;'Pipeline year'[Pipeline year Value]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;No matter what I try, I can't get the filter to work. The problem seems to be using the [Pipeline year Value] twice in the same formula as it works if I replace the second instance with a number, for exampe:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Dynamic check = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Year enters pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Pipeline year'&lt;/SPAN&gt;&lt;SPAN&gt;[Pipeline year Value]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Year leaves pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;2015&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any advice on how I can achieve the desired result would be very gratefully received!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Jon&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jan 2022 14:54:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2298797#M56698</guid>
      <dc:creator>jonbrooker</dc:creator>
      <dc:date>2022-01-24T14:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2298823#M56700</link>
      <description>&lt;P&gt;Hi Jon:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You an try something along the lines of:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Amt by Selected Year = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;yr_comp&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Pipeline year'[Pipeline year Value]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;IF(AND([Year enters pipeline]&amp;lt;=yr_comp, yr-comp&amp;gt;2015),"Yes","No")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jan 2022 15:07:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2298823#M56700</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-01-24T15:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2298860#M56702</link>
      <description>&lt;P&gt;Hi, many thanks for your swift response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried updating my formula as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Dynamic check = &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Pipeline year'&lt;/SPAN&gt;&lt;SPAN&gt;[Pipeline year Value]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Pipeline[Year enters pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Pipeline[Year leaves pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However DAX says that Pipeline year Value may not be used in this expression. The expression works if I use [Pipeline year], ie the range of years in the Whatif parameter), but changing the slider has no effect.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jan 2022 15:25:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2298860#M56702</guid>
      <dc:creator>jonbrooker</dc:creator>
      <dc:date>2022-01-24T15:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2303150#M56945</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;BR /&gt;Perhaps you already did, but check datatypes, they should match for the two fields you're comparing.&lt;BR /&gt;Also, instead of&amp;nbsp;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Pipeline[Year enters pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Pipeline[Year leaves pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;write selectedvalue for both&amp;nbsp;&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(SELECTEDVALUE(&lt;/SPAN&gt;&lt;SPAN&gt;Pipeline[Year enters pipeline])&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt;,SELECTEDVALUE(&lt;/SPAN&gt;&lt;SPAN&gt;Pipeline[Year leaves pipeline])&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;yearcheck&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:07:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2303150#M56945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-26T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2303551#M56964</link>
      <description>&lt;P&gt;Hi MargaritaG, many thanks for your suggestions. Unfortunately I still haven't found the magic formula to make this work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SelectedValue only seems to be accepted in a formula when it is used with the data array in the Whatif parameter, e.g.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, when the column formula is like this, nothing meets this critera, everything is No.&lt;/P&gt;&lt;P&gt;When I try to use SelectedValue with the slider value, the formula is not accepted.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I've tried wrapping the [Year enters pipeline] and [Year leaves pipeline] columns in SelectedValue, but again, everything is No.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The closest I can get to this working is without using SelectedValue, so:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This gives results, but it always uses the default value rather than the value on the slider. When I manually update the default value, the filter updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a trick to getting this formula to updated with the slider?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The screenshot below shows this in the context of the dashboard. The slider is set to 2012, but the results are for 2020, which is the default for the Select a year value (shown in the formula bar at the top). You can see the results are for 2020 from the filters on the right. The column 2020/21 check hard-codes 2020 into the formula (&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2020/21 check = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Year enters pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;2020&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Year leaves pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;2020&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and has exactly the same number of results. This is confirmed by the screen shot below that shows the two filters with nothing ticked.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Apologies that this is all a bit messy, but hopefully it helps to explain what I am trying to achieve and where I am going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 18:08:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2303551#M56964</guid>
      <dc:creator>jonbrooker</dc:creator>
      <dc:date>2022-01-26T18:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2304714#M57018</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand your requirement, I think the reason why your DAX formula can’t work is that you have to use the value of the measure [Parameter Value] in the What-if parameter you created, you can try my method to achieve this:&lt;/P&gt;
&lt;P&gt;This is the test data I created based on your description:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I create a What-if parameter like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create a measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Pipeline check =

IF(MAX('Pipeline'[Year enters pipeline])&amp;lt;=[Parameter Value]&amp;amp;&amp;amp;MAX('Pipeline'[Year leaves pipeline])&amp;gt;[Parameter Value],"Yes","No")

&lt;/LI-CODE&gt;
&lt;P&gt;And you can create a table chart to place it like this and apply the visual filter like this to get what you want, like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 09:02:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2304714#M57018</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2022-01-27T09:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2306970#M57174</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it would be easier to understand if it works and what we are dealing with if you could add table visual of Item, [[Year Enters Pipeline], [Year Leaves Pipeline], [Measure with the logic]&lt;BR /&gt;Then it would be clear where it does not work.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 06:59:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2306970#M57174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-28T06:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2308141#M57278</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What I'm trying to create is a companion to &lt;A title="Residential approvals dashboard" href="https://data.london.gov.uk/dataset/residential-approvals-dashboard" target="_blank" rel="noopener"&gt;this dashboard&lt;/A&gt;, but rather than focussing on what was granted each year I want to show what was still 'live' at the end of each year.&lt;/P&gt;&lt;P&gt;Each line of data only has one approval date, so for the &lt;A title="Residential approvals dashboard" href="https://data.london.gov.uk/dataset/residential-approvals-dashboard" target="_blank" rel="noopener"&gt;approvals dashboard&lt;/A&gt; you can put the approval date in a slicer and all of the visuals will update when the slicer is changed.&lt;/P&gt;&lt;P&gt;For the pipeline, however, each line can be in multiple years (or none).&amp;nbsp;I've created various objects in DAX to help me see if something is live at the end of the year; the formula to see what was live at the end of 2020/21 is:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;2020/21 check =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Year enters pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;2020&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Year leaves pipeline]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;2020&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What I have been trying is to use a WhatIf parameter to replace the hard-coded dates in the formula above, then filter the report to only show the records that return "Yes" from this formula.&lt;/P&gt;&lt;P&gt;What Robert has shown above is that I can create a measure using the formula, and the data table (equivalent to the one on the third page of the approvals dashboard) will update as intended. However it doesn't seem to be compatible with the cards, cross-tabs and charts that are also included in the report. If I use the formula in a Column, which is what I had been trying (as it seems to be the only way to use it as a filter on all of the various visuals, across pages etc), it doesn't respond to the slider.&lt;/P&gt;&lt;P&gt;I'm trying to get to the point where I have a slicer, slider or whatever, that lets the user select the year. This needs to work in tandem with the filters by borough, type of supply etc and lead to the tables, cards and charts updating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies again that I am not explaining this very well, and many thanks for taking the time to read and respond to my posts!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 16:45:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2308141#M57278</guid>
      <dc:creator>jonbrooker</dc:creator>
      <dc:date>2022-01-28T16:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2309857#M57379</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand what you want to get. Would you like to post some sample data in table form or pbix file(without sensitive data) and your expected result(like the chart you want to get and the correct measure value based on your sample data)?&lt;/P&gt;
&lt;P&gt;Thanks very much!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 03:28:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2309857#M57379</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2022-01-31T03:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2312926#M57550</link>
      <description>&lt;P&gt;Hi, hopefully this file shows the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Example pbix file" href="https://drive.google.com/file/d/12CcTfdHM6g2Qw0lQ3dGr95kA3BIwZZL_/view?usp=sharing" target="_self"&gt;Example pbix file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need any more information or can't access the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 12:16:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2312926#M57550</guid>
      <dc:creator>jonbrooker</dc:creator>
      <dc:date>2022-02-01T12:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter using What if parameter in a formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2314393#M57620</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After my long time research and test, I finally figured out a method that u&lt;STRONG&gt;ses a measure to replace the field [Units] which serves as the Value column of the pie chart&lt;/STRONG&gt;:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Units Sum =

var _table=

FILTER('Pipeline data','Pipeline data'[Year enters pipeline]&amp;lt;='Select a year parameter'[Select a year parameter Value] &amp;amp;&amp;amp;'Pipeline data'[Year leaves pipeline]&amp;gt;'Select a year parameter'[Select a year parameter Value])

return

SUMX(_table,[Units])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sample pbix file is attached below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 03:24:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-using-What-if-parameter-in-a-formula/m-p/2314393#M57620</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2022-02-02T03:24:34Z</dc:date>
    </item>
  </channel>
</rss>

