<?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 Sum with multiple filters for different columns in the same table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-with-multiple-filters-for-different-columns-in-the-same/m-p/3906596#M152179</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Ihave two tables,&lt;BR /&gt;1 is employeedirectory and has thr following columns:&lt;BR /&gt;employeename&lt;BR /&gt;EmployeeID&lt;BR /&gt;department&lt;BR /&gt;Title&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2 is XFX Genesys Agent queue and has the following columns:&lt;BR /&gt;Interaction type,&lt;BR /&gt;Queuename,&lt;BR /&gt;Accepted,&lt;BR /&gt;Agent name,&lt;BR /&gt;Handle time,&lt;BR /&gt;AgentID.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the two tables are connected by columns EmployeeID and AgentID&lt;BR /&gt;I need to create a measure that will give me the number of calls each agent has accepted "inbound" from each of the queues&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;the&amp;nbsp; Accepted column is a number that represents the total number of calls accepted within the period of an hour.&lt;BR /&gt;&lt;BR /&gt;I have tried the following but nothing seems to give me the result I need&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;a)&lt;BR /&gt;Calls Accepted by Agent = CALCULATE( SUMX( FILTER( 'xFX Genesys Agent Queue', 'XFX Genesys Agent Queue'[Interaction type] = "Inbound" &amp;amp;&amp;amp; 'XFX Genesys Agent Queue'[Accepted] &amp;gt; 0 ), 'XFX Genesys Agent Queue'[Accepted] ) )&lt;BR /&gt;&lt;BR /&gt;b)&lt;BR /&gt;Calls Accepted by Agent = CALCULATE( COUNTROWS('XFX Genesys Agent Queue'), FILTER( X'FX Genesys Agent Queue', 'FX Genesys Agent Queue'[Interaction type] = "Inbound" &amp;amp;&amp;amp; 'XFX Genesys Agent Queue'[Accepted] &amp;gt; 0 ) )&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have also tried various combinations of summarize and summarizecolumn&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All to no avail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can someone please help me out.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 21:29:57 GMT</pubDate>
    <dc:creator>TJCappy</dc:creator>
    <dc:date>2024-05-09T21:29:57Z</dc:date>
    <item>
      <title>Sum with multiple filters for different columns in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-with-multiple-filters-for-different-columns-in-the-same/m-p/3906596#M152179</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Ihave two tables,&lt;BR /&gt;1 is employeedirectory and has thr following columns:&lt;BR /&gt;employeename&lt;BR /&gt;EmployeeID&lt;BR /&gt;department&lt;BR /&gt;Title&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2 is XFX Genesys Agent queue and has the following columns:&lt;BR /&gt;Interaction type,&lt;BR /&gt;Queuename,&lt;BR /&gt;Accepted,&lt;BR /&gt;Agent name,&lt;BR /&gt;Handle time,&lt;BR /&gt;AgentID.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the two tables are connected by columns EmployeeID and AgentID&lt;BR /&gt;I need to create a measure that will give me the number of calls each agent has accepted "inbound" from each of the queues&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;the&amp;nbsp; Accepted column is a number that represents the total number of calls accepted within the period of an hour.&lt;BR /&gt;&lt;BR /&gt;I have tried the following but nothing seems to give me the result I need&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;a)&lt;BR /&gt;Calls Accepted by Agent = CALCULATE( SUMX( FILTER( 'xFX Genesys Agent Queue', 'XFX Genesys Agent Queue'[Interaction type] = "Inbound" &amp;amp;&amp;amp; 'XFX Genesys Agent Queue'[Accepted] &amp;gt; 0 ), 'XFX Genesys Agent Queue'[Accepted] ) )&lt;BR /&gt;&lt;BR /&gt;b)&lt;BR /&gt;Calls Accepted by Agent = CALCULATE( COUNTROWS('XFX Genesys Agent Queue'), FILTER( X'FX Genesys Agent Queue', 'FX Genesys Agent Queue'[Interaction type] = "Inbound" &amp;amp;&amp;amp; 'XFX Genesys Agent Queue'[Accepted] &amp;gt; 0 ) )&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have also tried various combinations of summarize and summarizecolumn&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All to no avail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can someone please help me out.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 21:29:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-with-multiple-filters-for-different-columns-in-the-same/m-p/3906596#M152179</guid>
      <dc:creator>TJCappy</dc:creator>
      <dc:date>2024-05-09T21:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple filters for different columns in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-with-multiple-filters-for-different-columns-in-the-same/m-p/3907629#M152222</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398979" data-lia-user-login="TJCappy" class="lia-mention lia-mention-user"&gt;TJCappy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your information, I created two sample tables:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create a new measure and try the following dax expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calls Accepted by Agent = 
SUMX(
    FILTER(
        'XFX Genesys Agent Queue', 
        'XFX Genesys Agent Queue'[InteractionType] = "Inbound" &amp;amp;&amp;amp; 
        'XFX Genesys Agent Queue'[Accepted] &amp;gt; 0
    ), 
    'XFX Genesys Agent Queue'[Accepted]
)
&lt;/LI-CODE&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;You can create another slicer and put the Queuename in it to filter the number of times different Queuenames are used.&lt;/P&gt;
&lt;P&gt;Here is my preview:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A title="https://community.powerbi.com/t5/community-blog/how-to-get-your-question-answered-quickly/ba-p/38490" href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yohua%40microsoft.com%7Ce1106bfabecb4734a5cc08dc2305bc51%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638423754744679080%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=24%2BceC5sFd3n3%2FhFDYILWFcNjCwVClBD%2BPBsSLVfJGk%3D&amp;amp;reserved=0" target="_blank" rel="noopener nofollow noreferrer"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yongkang Hua&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 07:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-with-multiple-filters-for-different-columns-in-the-same/m-p/3907629#M152222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-10T07:25:01Z</dc:date>
    </item>
  </channel>
</rss>

