<?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: Help with counting all rows as long as it includes one criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859781#M150759</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Thanks this works...out of curiosity do you know if its possible to go one level further and show only interactions on the same date?&amp;nbsp; &amp;nbsp;So the billing calls and then other calls that happened on that same date... I have a standard date field, but there might be cases where they have a billing call one day and then a repair call a week later&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 15:21:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-22T15:21:31Z</dc:date>
    <item>
      <title>Help with counting all rows as long as it includes one criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859556#M150748</link>
      <description>&lt;P&gt;I have a case where I am trying to identify all customer call tyeps provided they include one specific type.&amp;nbsp; &amp;nbsp;So I have a field with customer name and a field with all customer call types.&amp;nbsp; A call type for example could be Sales, Repair, Billing, etc.&amp;nbsp; &amp;nbsp; I want to be able to get a list of customers that had other interactions as a result of a Billing interaction.&amp;nbsp; &amp;nbsp;So Customer A might have 3 rows...one for Billing, one for Repair, one for Sales since they had 3 different calls.&amp;nbsp; &amp;nbsp;But I want to be able to include only customers that had at least one Billing calls but also pull in their other calls.&amp;nbsp; &amp;nbsp;So I can't filter on Call Type as Billing because I would exclude the others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally if I can incorporate the date field I have to see if these were all on the same day, even better.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 13:51:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859556#M150748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-22T13:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with counting all rows as long as it includes one criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859619#M150751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can create a disconnected table that contains the list of Call Types to use it as a slicer selection&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;CallType =
ALLNOBLANKROW ( 'Table'[CallType] )&lt;/LI-CODE&gt;
&lt;P&gt;Make sure no realtionship is automatically created, delete it if that happens.&lt;/P&gt;
&lt;P&gt;Then place the following measure in the filter pane of the table visual, select "is not blank" then apply the filter&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;FilterMeasure =
COUNTROWS (
    FILTER (
        VALUES ( 'Table'[Customer] ),
        ISEMPTY (
            EXCEPT (
                VALUES ( CallType[CallType] ),
                CALCULATETABLE ( VALUES ( 'Table'[CallType] ) )
            )
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Only the custermrs that made all the selected CallTypes will be visible and along with all there Calltypes.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 14:18:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859619#M150751</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-22T14:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with counting all rows as long as it includes one criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859667#M150752</link>
      <description>&lt;P&gt;Hi. &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;..thanks for the answer!&amp;nbsp; &amp;nbsp;So I can't quite get this to work.&amp;nbsp; I tried what you said...the new table is disconnected and I added in that filter measure and selected 'is not blank'...however when I choose 'Billing' from the Call Type in the original query, I get all blank&amp;nbsp; .... In fact its blank with all interactions selected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attached is a screenshot, in this case 'interactions by source' is the main table, InteractionFilter is the disconnected one I created per your formula, and Reason 2 is the call type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there something else I missed??&lt;/P&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;</description>
      <pubDate>Mon, 22 Apr 2024 14:31:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859667#M150752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-22T14:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with counting all rows as long as it includes one criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859747#M150756</link>
      <description>&lt;P&gt;NM I think I got it, adding the interaction filter from the new table did the trick...thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 15:08:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859747#M150756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-22T15:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with counting all rows as long as it includes one criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859781#M150759</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Thanks this works...out of curiosity do you know if its possible to go one level further and show only interactions on the same date?&amp;nbsp; &amp;nbsp;So the billing calls and then other calls that happened on that same date... I have a standard date field, but there might be cases where they have a billing call one day and then a repair call a week later&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 15:21:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3859781#M150759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-22T15:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with counting all rows as long as it includes one criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3860042#M150776</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That might be very slow but worth trying&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FilterMeasure =&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;VALUES ( 'Table'[Customer] ),&lt;BR /&gt;VAR SelectedCallTypes =&lt;BR /&gt;VALUES ( CallType[CallType] )&lt;BR /&gt;VAR Dates =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( 'Table'[Date] ),&lt;BR /&gt;TREATAS ( SelectedCallTypes, 'Table'[CallType] )&lt;BR /&gt;)&lt;BR /&gt;VAR CurrentCallTypes =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( 'Table'[CallType] ),&lt;BR /&gt;TREATAS ( Dates, 'Table'[Date] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;ISEMPTY ( EXCEPT ( SelectedCallTypes, CurrentCallTypes ) )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 17:13:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3860042#M150776</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-22T17:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with counting all rows as long as it includes one criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3860200#M150783</link>
      <description>&lt;P&gt;i'll give it a whirl, thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 18:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-counting-all-rows-as-long-as-it-includes-one-criteria/m-p/3860200#M150783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-22T18:18:16Z</dc:date>
    </item>
  </channel>
</rss>

