<?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 Filtering Count by related table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Count-by-related-table/m-p/3503463#M134374</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to filter PA Status so it only calculates the values with the highest status&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table Status Sort (related table)&lt;BR /&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;PA Status =&amp;nbsp;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Central Scada'&lt;/SPAN&gt;&lt;SPAN&gt;[Available]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" of "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Central Scada'&lt;/SPAN&gt;&lt;SPAN&gt;[Installed]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The highest staus in this example is Red so the PA Status should be 3 of 4&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ThanksRodney&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 29 Oct 2023 22:38:18 GMT</pubDate>
    <dc:creator>zenton</dc:creator>
    <dc:date>2023-10-29T22:38:18Z</dc:date>
    <item>
      <title>Filtering Count by related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Count-by-related-table/m-p/3503463#M134374</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to filter PA Status so it only calculates the values with the highest status&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table Status Sort (related table)&lt;BR /&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;PA Status =&amp;nbsp;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Central Scada'&lt;/SPAN&gt;&lt;SPAN&gt;[Available]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" of "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Central Scada'&lt;/SPAN&gt;&lt;SPAN&gt;[Installed]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The highest staus in this example is Red so the PA Status should be 3 of 4&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ThanksRodney&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Oct 2023 22:38:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Count-by-related-table/m-p/3503463#M134374</guid>
      <dc:creator>zenton</dc:creator>
      <dc:date>2023-10-29T22:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Count by related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Count-by-related-table/m-p/3508535#M134619</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="56679" data-lia-user-login="zenton" class="lia-mention lia-mention-user"&gt;zenton&lt;/a&gt;&amp;nbsp;,&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. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PA Status =
var _highest=
MAXX(
    FILTER(ALL('Table Status Sort'),
    'Table Status Sort'[Sort]=MINX(ALL('Table Status Sort'),'Table Status Sort'[Sort])),[Status])
return
SUMX(
    FILTER(ALL('Central Scada'),
    'Central Scada'[Status]=_highest),[Available])
&amp;amp;" of "&amp;amp;
SUMX(
    FILTER(ALL('Central Scada'),
    'Central Scada'[Status]=_highest),[Installed])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&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;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>Wed, 01 Nov 2023 03:07:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Count-by-related-table/m-p/3508535#M134619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-01T03:07:04Z</dc:date>
    </item>
  </channel>
</rss>

