<?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: COUNTROWS with ALL and FILTER in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-with-ALL-and-FILTER/m-p/985837#M12142</link>
    <description>&lt;P&gt;Or... you could try this as well:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[GT500 Total] =
CALCULATE(
	SUM( Table[Value] ),
	Table[Value] &amp;gt; 500,
	ALL( CalendarTable )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This one will respect all filters in all dimensions but the ones on CalendarTable. Maybe this is what you wanted?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
    <pubDate>Sun, 22 Mar 2020 18:03:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-22T18:03:18Z</dc:date>
    <item>
      <title>COUNTROWS with ALL and FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-with-ALL-and-FILTER/m-p/985622#M12126</link>
      <description>&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;I have a table with the following structure linked to my data model:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Item&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01.03.2020&lt;/TD&gt;&lt;TD&gt;+550&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;02.03.2020&lt;/TD&gt;&lt;TD&gt;-600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Date Column is an active connection to the calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have a Pivot table like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Week&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-01&lt;/TD&gt;&lt;TD&gt;+5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020-01&lt;/TD&gt;&lt;TD&gt;-50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This table shows me the sum for each week.&lt;/P&gt;&lt;P&gt;Now I want a second column in this pivot that shows me the total sum regardless of the week, but just for values above 500.&lt;/P&gt;&lt;P&gt;The following measure is not working:&lt;/P&gt;&lt;P&gt;=CALCULATE(COUNTROWS(tblOne);FILTER(tblOne;tblOne[Value]&amp;gt;500);ALL(tblOne))&lt;/P&gt;&lt;P&gt;=CALCULATE(COUNTROWS(tblOne);ALL(tblOne);FILTER(tblOne;tblOne[Value]&amp;gt;500))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you solve that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 11:08:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-with-ALL-and-FILTER/m-p/985622#M12126</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2020-03-22T11:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS with ALL and FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-with-ALL-and-FILTER/m-p/985728#M12138</link>
      <description>&lt;P&gt;Perhaps:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  SUMX(FILTER(ALL('Table'),[Value]&amp;gt;500),[Value])&lt;/LI-CODE&gt;
&lt;P&gt;Although I can't fathom why you were using COUNTROWS so if you actually want the count, use COUNTX instead of SUMX.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 14:35:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-with-ALL-and-FILTER/m-p/985728#M12138</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-22T14:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS with ALL and FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-with-ALL-and-FILTER/m-p/985837#M12142</link>
      <description>&lt;P&gt;Or... you could try this as well:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[GT500 Total] =
CALCULATE(
	SUM( Table[Value] ),
	Table[Value] &amp;gt; 500,
	ALL( CalendarTable )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This one will respect all filters in all dimensions but the ones on CalendarTable. Maybe this is what you wanted?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 18:03:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-with-ALL-and-FILTER/m-p/985837#M12142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-22T18:03:18Z</dc:date>
    </item>
  </channel>
</rss>

