<?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 to count number of accounts that meet criteria within a matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189124#M115608</link>
    <description>&lt;P&gt;sorry for all the questions, but I now get all the accounts with blanks for the other measures but also get the correct ones that have the measures like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 18:22:13 GMT</pubDate>
    <dc:creator>scabral</dc:creator>
    <dc:date>2023-04-14T18:22:13Z</dc:date>
    <item>
      <title>measure to count number of accounts that meet criteria within a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3188889#M115587</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the following matrix in Power BI Report:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It using a heirarchy of Company/Division/Ops/Branch and Account to build the matrix.&amp;nbsp; the measures are # of accounts (sum of accounts at each level), and then expiring rate, renewal rate, rate change from expiring and rate change %.&amp;nbsp; These are all measures that work at each level as seen in the screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is create a new measure that will give me the number of accounts at each level who have a Rate Change % less then 5%., so for example in the screenshot above, the measure should have these values (sorry for the handwriting):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried to use the existing # of accounts measure and filter it for only accounts that have Rate Change % &amp;lt; 5, but isn't working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:38:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3188889#M115587</guid>
      <dc:creator>scabral</dc:creator>
      <dc:date>2023-04-14T15:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: measure to count number of accounts that meet criteria within a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3188922#M115590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="16874" data-lia-user-login="scabral" class="lia-mention lia-mention-user"&gt;scabral&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;New =&lt;BR /&gt;SUMX (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[Company],&lt;BR /&gt;'Table'[Division],&lt;BR /&gt;'Table'[Ops],&lt;BR /&gt;'Table'[Branch],&lt;BR /&gt;'Table'[Account]&lt;BR /&gt;),&lt;BR /&gt;IF ( [Rate Change %] &amp;lt; 0.05, 1, 0 )&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you may also try&lt;/P&gt;
&lt;P&gt;New =&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( 'Table'[Account] ),&lt;BR /&gt;IF ( [Rate Change %] &amp;lt; 0.05, 1, 0 )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:57:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3188922#M115590</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-14T15:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: measure to count number of accounts that meet criteria within a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189058#M115605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;tamerj1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the advice.&amp;nbsp; In the first query, if my account field belongs to another dimension table, how would i write the DAX?&amp;nbsp; So the Hierarchy fields&amp;nbsp;&lt;SPAN&gt;Company/Division/Ops/Branch are in a dimension table called 'Host Office' and account is in another table called 'Client'.&amp;nbsp; I need to basically summarize columns from both those tables, but Summarize doesn't allow it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 17:30:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189058#M115605</guid>
      <dc:creator>scabral</dc:creator>
      <dc:date>2023-04-14T17:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: measure to count number of accounts that meet criteria within a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189090#M115607</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="16874" data-lia-user-login="scabral" class="lia-mention lia-mention-user"&gt;scabral&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You try summarizing the fact table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;New =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMX (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMMARIZE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FactTable,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim1'[Company],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim1'[Division],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim1'[Ops],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim1'[Branch],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim2'[Account]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF ( [Rate Change %] &amp;lt; 0.05, 1, 0 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 18:04:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189090#M115607</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-14T18:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: measure to count number of accounts that meet criteria within a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189124#M115608</link>
      <description>&lt;P&gt;sorry for all the questions, but I now get all the accounts with blanks for the other measures but also get the correct ones that have the measures like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 18:22:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189124#M115608</guid>
      <dc:creator>scabral</dc:creator>
      <dc:date>2023-04-14T18:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: measure to count number of accounts that meet criteria within a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189182#M115610</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="16874" data-lia-user-login="scabral" class="lia-mention lia-mention-user"&gt;scabral&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;New =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMX (&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;IF (&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[# of Accts] &amp;lt;&amp;gt; BLANK ( ),&lt;BR /&gt;&lt;SPAN&gt;SUMMARIZE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FactTable,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim1'[Company],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim1'[Division],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim1'[Ops],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim1'[Branch],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Dim2'[Account]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF ( [Rate Change %] &amp;lt; 0.05, 1, 0 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:38:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measure-to-count-number-of-accounts-that-meet-criteria-within-a/m-p/3189182#M115610</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-14T19:38:24Z</dc:date>
    </item>
  </channel>
</rss>

