<?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 Asking for Help: Adding Measure as Filter in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asking-for-Help-Adding-Measure-as-Filter-in-Power-BI/m-p/3166309#M113889</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure that calculates the performance of search terms in my campaigns. However, I want to add this as a filter, but I know that you cannot directly add a measure as a filter. Can anyone help me know how I can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula for the measure is:&lt;/P&gt;&lt;P&gt;Bleeder: [Clicks] &amp;gt;= 10 and [Total Sales per Day] = 0&lt;/P&gt;&lt;P&gt;Untested: [Clicks] &amp;lt; 10, [Total Sales per Day] = 0&lt;/P&gt;&lt;P&gt;Unprofitable: ACOS &amp;gt; 0.25&lt;/P&gt;&lt;P&gt;Profitable**: ACOS between 0.15 and 0.25 &amp;lt; 0.25&lt;/P&gt;&lt;P&gt;Profitable: ACOS &amp;lt; 0.15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 16:37:30 GMT</pubDate>
    <dc:creator>Cris0410</dc:creator>
    <dc:date>2023-03-31T16:37:30Z</dc:date>
    <item>
      <title>Asking for Help: Adding Measure as Filter in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asking-for-Help-Adding-Measure-as-Filter-in-Power-BI/m-p/3166309#M113889</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure that calculates the performance of search terms in my campaigns. However, I want to add this as a filter, but I know that you cannot directly add a measure as a filter. Can anyone help me know how I can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula for the measure is:&lt;/P&gt;&lt;P&gt;Bleeder: [Clicks] &amp;gt;= 10 and [Total Sales per Day] = 0&lt;/P&gt;&lt;P&gt;Untested: [Clicks] &amp;lt; 10, [Total Sales per Day] = 0&lt;/P&gt;&lt;P&gt;Unprofitable: ACOS &amp;gt; 0.25&lt;/P&gt;&lt;P&gt;Profitable**: ACOS between 0.15 and 0.25 &amp;lt; 0.25&lt;/P&gt;&lt;P&gt;Profitable: ACOS &amp;lt; 0.15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 16:37:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asking-for-Help-Adding-Measure-as-Filter-in-Power-BI/m-p/3166309#M113889</guid>
      <dc:creator>Cris0410</dc:creator>
      <dc:date>2023-03-31T16:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Asking for Help: Adding Measure as Filter in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asking-for-Help-Adding-Measure-as-Filter-in-Power-BI/m-p/3168005#M114088</link>
      <description>&lt;P&gt;Hi Cris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully you find &lt;A href="https://www.youtube.com/watch?v=AZAL-QPn5Zc" target="_self"&gt;this 11 minute youtube video&lt;/A&gt; helpful. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 20:34:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asking-for-Help-Adding-Measure-as-Filter-in-Power-BI/m-p/3168005#M114088</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-02T20:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Asking for Help: Adding Measure as Filter in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asking-for-Help-Adding-Measure-as-Filter-in-Power-BI/m-p/3181058#M114999</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="539810" data-lia-user-login="Cris0410" class="lia-mention lia-mention-user"&gt;Cris0410&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Enter data – create a table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=SELECTEDVALUE('Slicer_Table'[Group])
return
SWITCH(
    TRUE(),
    _select="Bleeder"&amp;amp;&amp;amp; MAX('Table'[Clicks])&amp;gt;=10&amp;amp;&amp;amp;MAX('Table'[Total Sales per Day])=0,1,
    _select="Untested"&amp;amp;&amp;amp;MAX('Table'[Clicks])&amp;lt;10&amp;amp;&amp;amp;MAX('Table'[Total Sales per Day])=0,1,
    _select="Unprofitable"&amp;amp;&amp;amp;MAX('Table'[ACOS])&amp;gt;0.25,1
    ,
    _select="Profitable**"&amp;amp;&amp;amp;MAX('Table'[ACOS])&amp;lt;=0.25&amp;amp;&amp;amp;MAX('Table'[ACOS])&amp;gt;=0.15,1,
    _select="Profitable"&amp;amp;&amp;amp;MAX('Table'[ACOS])&amp;lt;0.15,1,0)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure =
COUNTX(
    ALLSELECTED('Table'),[Index])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;3. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4. Result:&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;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 05:57:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asking-for-Help-Adding-Measure-as-Filter-in-Power-BI/m-p/3181058#M114999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-11T05:57:39Z</dc:date>
    </item>
  </channel>
</rss>

