<?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: DAX measure to count ID's that have items in another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473088#M67421</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="325496" data-lia-user-login="serhii2000" class="lia-mention lia-mention-user"&gt;serhii2000&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was having a 2nd read of your requirement. Actually the DISTINCTCOUNT of the people ID which do exist in Items A table will give you the number you desire and will be filtered by Category.&amp;nbsp;&lt;BR /&gt;Measure = DISTINCTCOUNT (&amp;nbsp;&lt;SPAN&gt;'Items A'[People ID] )&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Apr 2022 07:14:11 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-24T07:14:11Z</dc:date>
    <item>
      <title>DAX measure to count ID's that have items in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2472892#M67408</link>
      <description>&lt;P&gt;Dear collegues!&lt;BR /&gt;I need to count People_ID in 'People' table that have Item_A_ID in 'Item_A' table. The final task is to have share of People_ID in 'People' table that have Item_A_ID in 'Item_A' table.&lt;/P&gt;&lt;P&gt;Now, I have counted People_ID as People_count = COUNT('People'[People_ID]).&lt;/P&gt;&lt;P&gt;My initial solution was to create calculated column in 'People' table that calculates number of Item_A_ID from 'Item_A' table (each People_id could have 0, 1 or more such items). And then I have created measure CALCULATE(COUNT('People'[People_ID]),'People'[Number_Of_ItemA_ID]&amp;gt;=1). But it does not allow to filter share of People_ID by Category ID.&lt;/P&gt;&lt;P&gt;Could you advice me about possible solution with DAX measure?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 20:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2472892#M67408</guid>
      <dc:creator>serhii2000</dc:creator>
      <dc:date>2022-04-23T20:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure to count ID's that have items in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2472895#M67409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="325496" data-lia-user-login="serhii2000" class="lia-mention lia-mention-user"&gt;serhii2000&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can try&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(COUNT('People'[People_ID]),'People'[Number_Of_ItemA_ID]&amp;gt;=1,CROSSFILTER (People[People ID], 'Items A'[People ID], BOTH)).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 21:09:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2472895#M67409</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-23T21:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure to count ID's that have items in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473081#M67420</link>
      <description>&lt;P&gt;Thank you for your reply. But unfortunately it does not work for me. I guess it is because of calculated column 'People'[Number_Of_ItemA_ID], not measure. Slicer with CategoryID cannot filter share of People_ID by Category ID. But I am not sure how to solve it.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 06:31:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473081#M67420</guid>
      <dc:creator>serhii2000</dc:creator>
      <dc:date>2022-04-24T06:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure to count ID's that have items in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473088#M67421</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="325496" data-lia-user-login="serhii2000" class="lia-mention lia-mention-user"&gt;serhii2000&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was having a 2nd read of your requirement. Actually the DISTINCTCOUNT of the people ID which do exist in Items A table will give you the number you desire and will be filtered by Category.&amp;nbsp;&lt;BR /&gt;Measure = DISTINCTCOUNT (&amp;nbsp;&lt;SPAN&gt;'Items A'[People ID] )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 07:14:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473088#M67421</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-24T07:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure to count ID's that have items in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473107#M67424</link>
      <description>&lt;P&gt;The task is to count People_ID in 'People' table that exist in 'Item_A' table, not just to count distinct People_ID in 'Item_A' table. And at the same time I need to have possibility to filter People_ID by Category....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other words I need to have&lt;/P&gt;&lt;P&gt;#1 count of all People_ID in 'People' table&lt;/P&gt;&lt;P&gt;#2 count of People_ID in 'People' table that exist in 'Item_A' table in order to have share of #1&lt;/P&gt;&lt;P&gt;#3 create slicer that filters #2 by Category&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 08:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473107#M67424</guid>
      <dc:creator>serhii2000</dc:creator>
      <dc:date>2022-04-24T08:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure to count ID's that have items in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473119#M67425</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"&lt;EM&gt;The task is to count People_ID in 'People' table that exist in 'Item_A' table&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is exactly the&amp;nbsp;People_ID that exist in&amp;nbsp;Item_A Table!&lt;BR /&gt;Just count them!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 08:28:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2473119#M67425</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-24T08:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure to count ID's that have items in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2480221#M67850</link>
      <description>&lt;P&gt;Thank you! &lt;SPAN class=""&gt;I did not accept your solution earlier because there was an extra active relationship in my model, that was not described in my question. I have deactivated unnecessary active relationship with wrapping it in CALCULATE with CROSSFILTER=none and your solution works well.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 11:01:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-to-count-ID-s-that-have-items-in-another-table/m-p/2480221#M67850</guid>
      <dc:creator>serhii2000</dc:creator>
      <dc:date>2022-04-27T11:01:55Z</dc:date>
    </item>
  </channel>
</rss>

