<?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: Counting 2 columns from the same table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3420374#M129475</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="613497" data-lia-user-login="Crazypad" class="lia-mention lia-mention-user"&gt;Crazypad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like your "Attended" field is a subset of "Complete" field, and everyone who "Attended" has "Completed" interview.&amp;nbsp; Is this correct?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Replacing double ampersand ("&amp;amp;&amp;amp;") with double pipe ("||") counts "Complete" without double counting "Attended".&amp;nbsp; Is this what you want?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 21:08:51 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2023-09-07T21:08:51Z</dc:date>
    <item>
      <title>Counting 2 columns from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3418475#M129377</link>
      <description>&lt;P&gt;I am trying to create a measure that counts the&amp;nbsp; "Attended" from the Attendance column and the "Complete" from the Interview Status__C column. I have a formula that pulls in the "Attended" totals but it doesn't add "Complete" totals":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Count Attended plus Completed =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Campaign Member'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Campaign Member'&lt;/SPAN&gt;&lt;SPAN&gt;[Attendance]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Attended"&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'Campaign Member'&lt;/SPAN&gt;&lt;SPAN&gt;[Interview_Status__c]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Complete"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is new to me so any help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 20:32:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3418475#M129377</guid>
      <dc:creator>Crazypad</dc:creator>
      <dc:date>2023-09-06T20:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting 2 columns from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3418554#M129382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="613497" data-lia-user-login="Crazypad" class="lia-mention lia-mention-user"&gt;Crazypad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your dax code produces intersecting part like below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about replacing double ampersand with or (||)?&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 21:26:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3418554#M129382</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2023-09-06T21:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Counting 2 columns from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3419881#M129446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;- I want it to combine/add both "Attended" and "Complete" but with my original formula, it is only counting Attended.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 14:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3419881#M129446</guid>
      <dc:creator>Crazypad</dc:creator>
      <dc:date>2023-09-07T14:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting 2 columns from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3420374#M129475</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="613497" data-lia-user-login="Crazypad" class="lia-mention lia-mention-user"&gt;Crazypad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like your "Attended" field is a subset of "Complete" field, and everyone who "Attended" has "Completed" interview.&amp;nbsp; Is this correct?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Replacing double ampersand ("&amp;amp;&amp;amp;") with double pipe ("||") counts "Complete" without double counting "Attended".&amp;nbsp; Is this what you want?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 21:08:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3420374#M129475</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2023-09-07T21:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Counting 2 columns from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3421951#M129546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, not always does a member attend and complete. So I want it to count Attended(which is a column that populates if a member attended a meeting) and Compete(which is a column that populates if a member completed an interview.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that makes sense and thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 16:51:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3421951#M129546</guid>
      <dc:creator>Crazypad</dc:creator>
      <dc:date>2023-09-08T16:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Counting 2 columns from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3422277#M129564</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="613497" data-lia-user-login="Crazypad" class="lia-mention lia-mention-user"&gt;Crazypad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an illustration where "Attended" has 5 people and "Complete" has 5 people, of which 2 are overlapping with each other, your initial formula with double ampersand will calculate, 2 (only the intersecting part), while my formula with double pipe will calculate 8 (5 + 5 - 2), where 2 is subtracted in order to avoid double counting of the overlapping part.&amp;nbsp; In this illustration, what is your expected outcome?&amp;nbsp; Is it 10 where each "Attended" and "Complete" is counted independently of each other like they are mutually exclusive?&amp;nbsp;&amp;nbsp;&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>Fri, 08 Sep 2023 23:02:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3422277#M129564</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2023-09-08T23:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Counting 2 columns from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3422663#M129587</link>
      <description>&lt;P&gt;maybe you can use something like this to count attended and complete&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure = var _attended =&amp;nbsp;&lt;SPAN&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Campaign Member'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Campaign Member'&lt;/SPAN&gt;&lt;SPAN&gt;[Attendance]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Attended"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&g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P&gt;</description>
      <pubDate>Sat, 09 Sep 2023 21:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3422663#M129587</guid>
      <dc:creator>jfern78</dc:creator>
      <dc:date>2023-09-09T21:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Counting 2 columns from the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3424941#M129723</link>
      <description>&lt;P&gt;That worked perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 19:38:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-2-columns-from-the-same-table/m-p/3424941#M129723</guid>
      <dc:creator>Crazypad</dc:creator>
      <dc:date>2023-09-11T19:38:47Z</dc:date>
    </item>
  </channel>
</rss>

