<?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: Measure as filter? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152373#M165023</link>
    <description>&lt;P&gt;Have you considered using CoPilot to ask these kinds of questions of your sematic model?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 12:27:11 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-09-16T12:27:11Z</dc:date>
    <item>
      <title>Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3771818#M147355</link>
      <description>&lt;P&gt;I have a simple table that shows the sales based on 4 tables (master data, sales, budget, calendar).&lt;BR /&gt;Now I would like to use a filter at the top of the report with which I can filter whether an article has sales &amp;gt; 0 and whether we also had a budget &amp;gt; 0.&lt;BR /&gt;On what basis can I set up these filters?&lt;BR /&gt;Unfortunately, measures cannot be set up as a filter.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 13:44:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3771818#M147355</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2024-03-18T13:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3771836#M147357</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;In general, to use a measure in that way, you need to use the Disconnected Table Trick as this article demonstrates: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick/ba-p/279563" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick/ba-p/279563&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 13:51:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3771836#M147357</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-03-18T13:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3771839#M147358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a column wich has the value 'has_sales' and 'has_budget' :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ColumnFilter = 
IF(
    'Table'[sales] &amp;gt; 0, 
    "has_sales", 
    IF(
        'Table'[budget] &amp;gt; 0, 
        "has_budget", 
        BLANK()
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From this column you can filter your data.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 13:53:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3771839#M147358</guid>
      <dc:creator>Daoud_H</dc:creator>
      <dc:date>2024-03-18T13:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3772199#M147385</link>
      <description>&lt;LI-CODE lang="markup"&gt;Unfortunately, measures cannot be set up as a filter.&lt;/LI-CODE&gt;
&lt;P&gt;Measures can be used as "Filter on this visual".&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 17:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3772199#M147385</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-18T17:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3773485#M147450</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What everyone else has said makes a lot of sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, make sure your four tables are properly related to each other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, are your "sales" and "budget" column names?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, drag "sales" and "budget" to the Filter at the visual object level and set the condition to is greater than 0.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 06:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/3773485#M147450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-19T06:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152367#M165022</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to come back to a closed topic but it would be really helpful to have a general pattern to treat this scenarios. All the solutions I've seen - including this one - do in fact work but they are heavy to implement and scale terribly.&lt;/P&gt;&lt;P&gt;I have a requirement to use some metrics to identify "problematic" customers.&lt;/P&gt;&lt;P&gt;Basically users have defined a few criteria, like "Has a lower margin than the average", "Pays later than the average", "Issues fewer orders than the average", stuff like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is in my experience a common scenario but if we have to apply the proposed solution, the measures and the model become exponentially complex and the performance deteriorates rapidly with the increase of data volume.&lt;/P&gt;&lt;P&gt;Any suggestion or opinion is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:23:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152367#M165022</guid>
      <dc:creator>MattiaColuccia</dc:creator>
      <dc:date>2024-09-16T12:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152373#M165023</link>
      <description>&lt;P&gt;Have you considered using CoPilot to ask these kinds of questions of your sematic model?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:27:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152373#M165023</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-16T12:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152389#M165025</link>
      <description>&lt;P&gt;This is a good suggestion and I can definitely try but the transformative journey towards Copilot is very much on-going, not all users are allowed/willing/capable/trained/confident to use Copilot yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:32:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152389#M165025</guid>
      <dc:creator>MattiaColuccia</dc:creator>
      <dc:date>2024-09-16T12:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Measure as filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152394#M165026</link>
      <description>&lt;P&gt;Or maybe try the Q&amp;amp;A visual as an intermediate option.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-as-filter/m-p/4152394#M165026</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-16T12:34:04Z</dc:date>
    </item>
  </channel>
</rss>

