<?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 Count all *other* records excluding current record; consider blank values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-other-records-excluding-current-record-consider-blank/m-p/1219822#M19787</link>
    <description>&lt;P&gt;In the bottom visual below, you'll notice answers of "6", but I'm looking for an answer of "8". Below I describe the setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my "Store" table, notice the empty values for Store Name&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to count how many &lt;STRONG&gt;other&lt;/STRONG&gt; stores there are when I look at one store name (middle visual). I'm trying to use the following measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Count of All Other Store = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;var __selection = SELECTEDVALUE(Stores[Store Name])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;var __table = FILTER(ALLSELECTED(Stores),Stores[Store Name]&amp;lt;&amp;gt;__selection)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;COUNTROWS(__table)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&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;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 02:00:21 GMT</pubDate>
    <dc:creator>akarasick1</dc:creator>
    <dc:date>2020-07-14T02:00:21Z</dc:date>
    <item>
      <title>Count all *other* records excluding current record; consider blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-other-records-excluding-current-record-consider-blank/m-p/1219822#M19787</link>
      <description>&lt;P&gt;In the bottom visual below, you'll notice answers of "6", but I'm looking for an answer of "8". Below I describe the setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my "Store" table, notice the empty values for Store Name&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to count how many &lt;STRONG&gt;other&lt;/STRONG&gt; stores there are when I look at one store name (middle visual). I'm trying to use the following measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Count of All Other Store = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;var __selection = SELECTEDVALUE(Stores[Store Name])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;var __table = FILTER(ALLSELECTED(Stores),Stores[Store Name]&amp;lt;&amp;gt;__selection)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;COUNTROWS(__table)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&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;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 02:00:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-other-records-excluding-current-record-consider-blank/m-p/1219822#M19787</guid>
      <dc:creator>akarasick1</dc:creator>
      <dc:date>2020-07-14T02:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count all *other* records excluding current record; consider blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-other-records-excluding-current-record-consider-blank/m-p/1220096#M19789</link>
      <description>I am getting the correct count, Is there any other filter active on the report?</description>
      <pubDate>Tue, 14 Jul 2020 04:26:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-other-records-excluding-current-record-consider-blank/m-p/1220096#M19789</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-07-14T04:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count all *other* records excluding current record; consider blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-other-records-excluding-current-record-consider-blank/m-p/1220151#M19791</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="171396" data-lia-user-login="akarasick1" class="lia-mention lia-mention-user"&gt;akarasick1&lt;/a&gt; , do not use store name, Try to take store id and advantage of row context&lt;/P&gt;
&lt;P&gt;calculate(count(Stores[Store_id]),filter(all(Stores), Stores[Store_id]&amp;lt;&amp;gt;max(Stores[Store_id])))&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;calculate(count(Stores[Store_id]),filter(all(Stores[Store_id]), Stores[Store_id]&amp;lt;&amp;gt;max(Stores[Store_id])))&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 05:01:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-other-records-excluding-current-record-consider-blank/m-p/1220151#M19791</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-14T05:01:53Z</dc:date>
    </item>
  </channel>
</rss>

