<?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: calculate the number of working agents [Name] by number of dates [Date] in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301114#M22535</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23807" data-lia-user-login="ch4rch" class="lia-mention lia-mention-user"&gt;ch4rch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Incase you need weeks, see if this helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 13:08:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-17T13:08:14Z</dc:date>
    <item>
      <title>calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1300799#M22516</link>
      <description>&lt;P&gt;I have understood that multiply doesn't exist in DAX in the same way that divide does. I am trying to calculate the number of working agents [Name] by number of dates [Date] But I need the Distinct count of the name as each name can appear 20 times on a date. Essentially the sum would be Multiply DISTINCTCOUNT [NAME], SUM [Date] but that obviously does not work. Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 11:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1300799#M22516</guid>
      <dc:creator>ch4rch</dc:creator>
      <dc:date>2020-08-17T11:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1300813#M22517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23807" data-lia-user-login="ch4rch" class="lia-mention lia-mention-user"&gt;ch4rch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use * or Product in DAX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what is the usecase.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Total = DISTINCTCOUNT(Table [Agent Name]) * COUNT(Table[Dates])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harsh Nathani&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 11:24:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1300813#M22517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T11:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1300840#M22520</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23807" data-lia-user-login="ch4rch" class="lia-mention lia-mention-user"&gt;ch4rch&lt;/a&gt; , not very clear try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;COUNTROWS(SUMMARIZE('Table','Table'[Name],'Table'[Date]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will count distinct name and date&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 11:36:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1300840#M22520</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-17T11:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1300972#M22525</link>
      <description>&lt;P&gt;Thanks, this works in that it gives me the number for all dates but if I filter the dates it does not seem to change.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 12:28:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1300972#M22525</guid>
      <dc:creator>ch4rch</dc:creator>
      <dc:date>2020-08-17T12:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301004#M22527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23807" data-lia-user-login="ch4rch" class="lia-mention lia-mention-user"&gt;ch4rch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share sample data and expected output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not very clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 12:42:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301004#M22527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T12:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301025#M22528</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot really share data as it contains company information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have is a list of interactions in a call centre.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Columns are:&lt;/P&gt;&lt;P&gt;Date/Time&lt;/P&gt;&lt;P&gt;Date only&lt;/P&gt;&lt;P&gt;Agent Name&lt;/P&gt;&lt;P&gt;Team&lt;/P&gt;&lt;P&gt;Media&lt;/P&gt;&lt;P&gt;Direction&lt;/P&gt;&lt;P&gt;Talk Time&lt;/P&gt;&lt;P&gt;Wait Time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And a few others that are not relevent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for a given data an Agents name may appear in 20 rows however I am trying to understand how many unique agents worked on a given day multiplied by the number of dates in the filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a DISTINCTCOUNT of Agent Names I get the number of Unique Agents that worked in that period but I am trying to work out how many agent days I had in a week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that make sense?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 12:49:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301025#M22528</guid>
      <dc:creator>ch4rch</dc:creator>
      <dc:date>2020-08-17T12:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301043#M22529</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23807" data-lia-user-login="ch4rch" class="lia-mention lia-mention-user"&gt;ch4rch&lt;/a&gt; , I hope the comment was not for the formula I shared. Seems like that did not work. &lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 12:54:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301043#M22529</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-17T12:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301104#M22533</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I initially dismissed your solution as to me (who clearly does not know what he is doing) it didn't look like it answered my question. However given your follow up comment I tried it and I think you have solved my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologise, thank you so much. never again will I be so dismissive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:05:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301104#M22533</guid>
      <dc:creator>ch4rch</dc:creator>
      <dc:date>2020-08-17T13:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of working agents [Name] by number of dates [Date]</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301114#M22535</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23807" data-lia-user-login="ch4rch" class="lia-mention lia-mention-user"&gt;ch4rch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Incase you need weeks, see if this helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:08:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-number-of-working-agents-Name-by-number-of-dates/m-p/1301114#M22535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T13:08:14Z</dc:date>
    </item>
  </channel>
</rss>

