<?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 Calculate the count of column equaling measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-column-equaling-measure/m-p/695290#M665</link>
    <description>&lt;P&gt;I have a table with a calculated column&lt;/P&gt;&lt;PRE&gt;Allowed = [Billed] - [Adjusted]&lt;/PRE&gt;&lt;PRE&gt;ID  Code  Billed  Adjusted  Allowed
1   A     100     50        50      
2   A     200     150       50      
3   A     100     25        75      
4   A     200     150       50      
5   A     100     25        75      
6   B     100     20        80       
7   B     125     45        80       
8   B     200     120       80
9   B     100     25        75      
10  B     145     70        75&lt;/PRE&gt;&lt;P&gt;I also have a measure for the &lt;A href="http://view-source:https://www.daxpatterns.com/statistical-patterns/" target="_self"&gt;arithmetic mode&lt;/A&gt; of [Allowed]&lt;/P&gt;&lt;PRE&gt;Allowed Mode := MINX(
	TOPN(
		1, 
		ADDCOLUMNS(
			VALUES('Charge Fact'[Allowed]), 
			"Frequency", CALCULATE(COUNT('Charge Fact'[Allowed]))
		), 
		[Frequency], 
		0
	), 
	'Charge Fact'[Allowed]
)&lt;/PRE&gt;&lt;P&gt;So, with the example data a matrix might appear like&lt;/P&gt;&lt;PRE&gt;Code   Count   Avg   Mode   Freq&lt;BR /&gt;A      5       60    50     3&lt;BR /&gt;B      5       78    80     3&lt;BR /&gt;Total  10      69    75     4&lt;/PRE&gt;&lt;P&gt;What I would like to do is get the measure for how many rows are equal to the mode. [Freq] in the above matrix, but haven't been able to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2019 01:38:38 GMT</pubDate>
    <dc:creator>hansei</dc:creator>
    <dc:date>2019-05-21T01:38:38Z</dc:date>
    <item>
      <title>Calculate the count of column equaling measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-column-equaling-measure/m-p/695290#M665</link>
      <description>&lt;P&gt;I have a table with a calculated column&lt;/P&gt;&lt;PRE&gt;Allowed = [Billed] - [Adjusted]&lt;/PRE&gt;&lt;PRE&gt;ID  Code  Billed  Adjusted  Allowed
1   A     100     50        50      
2   A     200     150       50      
3   A     100     25        75      
4   A     200     150       50      
5   A     100     25        75      
6   B     100     20        80       
7   B     125     45        80       
8   B     200     120       80
9   B     100     25        75      
10  B     145     70        75&lt;/PRE&gt;&lt;P&gt;I also have a measure for the &lt;A href="http://view-source:https://www.daxpatterns.com/statistical-patterns/" target="_self"&gt;arithmetic mode&lt;/A&gt; of [Allowed]&lt;/P&gt;&lt;PRE&gt;Allowed Mode := MINX(
	TOPN(
		1, 
		ADDCOLUMNS(
			VALUES('Charge Fact'[Allowed]), 
			"Frequency", CALCULATE(COUNT('Charge Fact'[Allowed]))
		), 
		[Frequency], 
		0
	), 
	'Charge Fact'[Allowed]
)&lt;/PRE&gt;&lt;P&gt;So, with the example data a matrix might appear like&lt;/P&gt;&lt;PRE&gt;Code   Count   Avg   Mode   Freq&lt;BR /&gt;A      5       60    50     3&lt;BR /&gt;B      5       78    80     3&lt;BR /&gt;Total  10      69    75     4&lt;/PRE&gt;&lt;P&gt;What I would like to do is get the measure for how many rows are equal to the mode. [Freq] in the above matrix, but haven't been able to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 01:38:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-column-equaling-measure/m-p/695290#M665</guid>
      <dc:creator>hansei</dc:creator>
      <dc:date>2019-05-21T01:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the count of column equaling measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-column-equaling-measure/m-p/695408#M666</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="137324" data-lia-user-login="hansei" class="lia-mention lia-mention-user"&gt;hansei&lt;/a&gt; not fully sure if this is what you are looking for, here is the measaure to calculate frequency&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Allowed Mode Count = 
VAR __mode = [Allowed Mode]
RETURN
 CALCULATE( COUNT( Table2[ID] ),
   
    Table2[Allowed] =__mode
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2019 03:50:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-column-equaling-measure/m-p/695408#M666</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-21T03:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the count of column equaling measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-column-equaling-measure/m-p/695492#M668</link>
      <description>&lt;P&gt;Exactly what I was looking for. Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 06:35:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-column-equaling-measure/m-p/695492#M668</guid>
      <dc:creator>hansei</dc:creator>
      <dc:date>2019-05-21T06:35:45Z</dc:date>
    </item>
  </channel>
</rss>

