<?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 Applying a segmentation filter to a DAX formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2249770#M54096</link>
    <description>&lt;P&gt;I need help to pass by parameter a Year value for a column or measure in DAX. So far I have only been able to indicate the minimum value of the year (2015), but what I need is not to have to indicate it manually but to change it with the segmentation filter. I need the average price for 2015 and the average price for 2020.&amp;nbsp;I would like it to change as I change the value in the segmentation filter and not have to change it manually in the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 11:21:14 GMT</pubDate>
    <dc:creator>icerdeira</dc:creator>
    <dc:date>2021-12-21T11:21:14Z</dc:date>
    <item>
      <title>Applying a segmentation filter to a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2249770#M54096</link>
      <description>&lt;P&gt;I need help to pass by parameter a Year value for a column or measure in DAX. So far I have only been able to indicate the minimum value of the year (2015), but what I need is not to have to indicate it manually but to change it with the segmentation filter. I need the average price for 2015 and the average price for 2020.&amp;nbsp;I would like it to change as I change the value in the segmentation filter and not have to change it manually in the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 11:21:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2249770#M54096</guid>
      <dc:creator>icerdeira</dc:creator>
      <dc:date>2021-12-21T11:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a segmentation filter to a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2249810#M54098</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="347190" data-lia-user-login="icerdeira" class="lia-mention lia-mention-user"&gt;icerdeira&lt;/a&gt; , You can use what if parameter &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(Avergae(Table[Value]), Filter(all(table), Table[Year] = [what if measure]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-what-if" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/desktop-what-if&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 11:44:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2249810#M54098</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-12-21T11:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a segmentation filter to a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2250616#M54161</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer. I'm trying to do it and it says: Need one more argument in my function.&lt;/P&gt;&lt;P&gt;I created a what if, with the years from 2006 to 2025 and make the relation and it works ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is something wrong on my formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 19:05:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2250616#M54161</guid>
      <dc:creator>icerdeira</dc:creator>
      <dc:date>2021-12-21T19:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a segmentation filter to a DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2254546#M54401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="347190" data-lia-user-login="icerdeira" class="lia-mention lia-mention-user"&gt;icerdeira&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Closing parenthesis is missing after &lt;EM&gt;ALL('Mercado'&lt;/EM&gt; and there is an extra closing parenthesis at the end of the expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 01:58:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-a-segmentation-filter-to-a-DAX-formula/m-p/2254546#M54401</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-12-24T01:58:27Z</dc:date>
    </item>
  </channel>
</rss>

