<?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 Calls (Inbound and Outbound) Yesterday in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970880#M11605</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210937" data-lia-user-login="Aimeeclaird" class="lia-mention lia-mention-user"&gt;Aimeeclaird&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try more easy&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Inbound Calls Yday = calculate(
counta(Inbound_Calls[StartDate]),
Inbound_Calls[StartDate] = (TODAY()-1)
)&lt;/LI-CODE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Inbound Calls Yday = calculate(
counta(Inbound_Calls[StartDate]),
Inbound_Calls[StartDate].[Date] = (TODAY()-1)
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 12 Mar 2020 13:25:49 GMT</pubDate>
    <dc:creator>az38</dc:creator>
    <dc:date>2020-03-12T13:25:49Z</dc:date>
    <item>
      <title>Count Calls (Inbound and Outbound) Yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970859#M11602</link>
      <description>&lt;P&gt;Hi, hopefully someone can help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to include a visual in my report that shows the percetage of inbound vs outbound calls yesterday (thinking a pie or doughnut chart?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling however to count and filter the data. The formula I am trying to use is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inbound Calls Yday = calculate(&lt;/P&gt;&lt;P&gt;countax(Inbound_Calls[StartDate]),&lt;/P&gt;&lt;P&gt;filter(Inbound_Calls, Inbound_Calls[StartDate] = [Yesterday]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;** Note, I have a measure in my date table [Yesterday] which is basically just Today()-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula above returns 'Blank'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can someone tell me how I can count the calls yesterday?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:08:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970859#M11602</guid>
      <dc:creator>Aimeeclaird</dc:creator>
      <dc:date>2020-03-12T13:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count Calls (Inbound and Outbound) Yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970880#M11605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210937" data-lia-user-login="Aimeeclaird" class="lia-mention lia-mention-user"&gt;Aimeeclaird&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try more easy&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Inbound Calls Yday = calculate(
counta(Inbound_Calls[StartDate]),
Inbound_Calls[StartDate] = (TODAY()-1)
)&lt;/LI-CODE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Inbound Calls Yday = calculate(
counta(Inbound_Calls[StartDate]),
Inbound_Calls[StartDate].[Date] = (TODAY()-1)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:25:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970880#M11605</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-12T13:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count Calls (Inbound and Outbound) Yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970890#M11606</link>
      <description>&lt;P&gt;Thanks for your help - appreciate you taking the time. Can I ask where I was going wrong please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:29:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970890#M11606</guid>
      <dc:creator>Aimeeclaird</dc:creator>
      <dc:date>2020-03-12T13:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count Calls (Inbound and Outbound) Yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970902#M11607</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210937" data-lia-user-login="Aimeeclaird" class="lia-mention lia-mention-user"&gt;Aimeeclaird&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first, countaX() has another syntax -&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;COUNTAX&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;lt;table&amp;gt;,&amp;lt;expression&amp;gt;)&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/countax-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/countax-function-dax&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;second, FILTER in measure uses row context, so you need use FILTER(ALL(Table),..)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;third, as you have the only simple expression over all amount of data it is not mandatory to use filter, you could filter out useful falues just by&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;CALCULATE&lt;/SPAN&gt;(&amp;lt;expression&amp;gt;,&amp;lt;filter1&amp;gt;,&amp;lt;filter2&amp;gt;…) &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:33:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Calls-Inbound-and-Outbound-Yesterday/m-p/970902#M11607</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-12T13:33:22Z</dc:date>
    </item>
  </channel>
</rss>

