<?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: Count multi-callers in multiple services in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-multi-callers-in-multiple-services/m-p/3057617#M105529</link>
    <description>&lt;P&gt;That is exactly what I needed,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;Thanks a lot for your help !&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 10:52:53 GMT</pubDate>
    <dc:creator>MorganBauwens</dc:creator>
    <dc:date>2023-02-02T10:52:53Z</dc:date>
    <item>
      <title>Count multi-callers in multiple services</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-multi-callers-in-multiple-services/m-p/3057245#M105509</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd love to get some help with DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the context :&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a hotline with multiple call-centers. All the events are recorded in a PowerBI Dataset. Here are the main columns that I focus on :&lt;/P&gt;&lt;P&gt;Table : ServiceTask&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Field&lt;/TD&gt;&lt;TD&gt;Meaning&lt;/TD&gt;&lt;TD&gt;Example&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;InitialSipFrom&lt;/TD&gt;&lt;TD&gt;Customer's phone number&lt;/TD&gt;&lt;TD&gt;+330636656565@voiipdomain.be&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;InitialSipTo&lt;/TD&gt;&lt;TD&gt;Call-center choosed by customer&lt;/TD&gt;&lt;TD&gt;call_center1@ourdomain.be&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;StartedDateID&lt;/TD&gt;&lt;TD&gt;Date (integer)&lt;/TD&gt;&lt;TD&gt;20221231&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TaskResultID&lt;/TD&gt;&lt;TD&gt;Result of the call (handled, not handled...)&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to create a measure with DAX that will count, for each day, the number of customers that called us more than one time and choosed at least two different contact centers ("shoppers"), and having a task result of 1 or 5.&lt;/P&gt;&lt;P&gt;So :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer 1 called us twice, but chosed the same contact center in both occasion =&amp;gt; do not count&lt;/P&gt;&lt;P&gt;Customer 2 called us twice, chosed call-center 1 the first time, and call-center 4 the second time =&amp;gt; count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final goal is to create a visual (table) a bit like this :&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;StartedDateID&lt;/TD&gt;&lt;TD&gt;Count InitialSipFrom&lt;/TD&gt;&lt;TD&gt;Count Shoppers&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20230101&lt;/TD&gt;&lt;TD&gt;2564&lt;/TD&gt;&lt;TD&gt;1201&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20230102&lt;/TD&gt;&lt;TD&gt;2845&lt;/TD&gt;&lt;TD&gt;1540&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20230103&lt;/TD&gt;&lt;TD&gt;3502&lt;/TD&gt;&lt;TD&gt;1745&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being connected live to the dataset, I am not able to create or modify any column or field.&lt;BR /&gt;&lt;BR /&gt;Is there anything I can do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;U&gt;a lot&lt;/U&gt; for your time and help ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-multi-callers-in-multiple-services/m-p/3057245#M105509</guid>
      <dc:creator>MorganBauwens</dc:creator>
      <dc:date>2023-02-02T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count multi-callers in multiple services</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-multi-callers-in-multiple-services/m-p/3057447#M105522</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cust called twice =
VAR SummaryTable =
    ADDCOLUMNS (
        VALUES ( 'Service Task'[Initial SIP from] ),
        "@num call centres", CALCULATE ( DISTINCTCOUNT ( 'Service Task'[Initial SIP to] ) )
    )
VAR Result =
    COUNTROWS ( FILTER ( SummaryTable, [@num call centres] &amp;gt;= 2 ) )
RETURN
    Result
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 09:35:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-multi-callers-in-multiple-services/m-p/3057447#M105522</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-02T09:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count multi-callers in multiple services</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-multi-callers-in-multiple-services/m-p/3057617#M105529</link>
      <description>&lt;P&gt;That is exactly what I needed,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;Thanks a lot for your help !&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-multi-callers-in-multiple-services/m-p/3057617#M105529</guid>
      <dc:creator>MorganBauwens</dc:creator>
      <dc:date>2023-02-02T10:52:53Z</dc:date>
    </item>
  </channel>
</rss>

