<?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 out rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2697340#M81462</link>
    <description>&lt;P&gt;Use the filter pane for the visual.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 12:26:27 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-08-12T12:26:27Z</dc:date>
    <item>
      <title>Filter out rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2697232#M81447</link>
      <description>&lt;P&gt;Hi, I’m trying to figure out how to filter our Trusts with a "Count of Mat Customers" = Blank but show the entire Trust and its Establishments if it has at least 1 "MAT Customer".&lt;BR /&gt;So, from the example, i want to show Zenith Multi Academy Trust and all the Establishments within that Trust because it has one MAT customer in it. But i would like to filter out "1Excellence Multi Academy Trust" and "5 Dimensions Trust" as they have no MAT customers.&lt;BR /&gt;So essentially, if Trust contains &amp;gt;=1 Mat customer show entire trust and all its establishments else filter it out.&lt;BR /&gt;Unfortunately, i have no idea what DAX command or how to go about this. Im thinking some kind of IF statement maybe? Any assistance much appreciated.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 11:10:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2697232#M81447</guid>
      <dc:creator>adam_macs</dc:creator>
      <dc:date>2022-08-12T11:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2697340#M81462</link>
      <description>&lt;P&gt;Use the filter pane for the visual.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 12:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2697340#M81462</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-12T12:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2697424#M81470</link>
      <description>&lt;P&gt;Unfortunately that wont work either as it removes the other establishments within the trust&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 13:00:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2697424#M81470</guid>
      <dc:creator>adam_macs</dc:creator>
      <dc:date>2022-08-12T13:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter out rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2709337#M82251</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="334626" data-lia-user-login="adam_macs" class="lia-mention lia-mention-user"&gt;adam_macs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created a simple sample:&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 to help filter the data:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = IF(ISBLANK( CALCULATE(COUNT('Table'[MAT Coustomers]),FILTER(ALL('Table'),[Trust]=MAX('Table'[Trust])))),0,1)&lt;/LI-CODE&gt;
&lt;P&gt;Apply it to the visual:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then filter the data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 09:27:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-out-rows/m-p/2709337#M82251</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-08-18T09:27:27Z</dc:date>
    </item>
  </channel>
</rss>

