<?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: Measure that shows count of distinct items based on two conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-count-of-distinct-items-based-on-two/m-p/2768999#M86113</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442026" data-lia-user-login="whodis118" class="lia-mention lia-mention-user"&gt;whodis118&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you want the result show the two equipments,&amp;nbsp; not three?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;But this sytnax is to filter "over under"&amp;lt;0, in your table , it seems to actually have three, so I think you need to change this filter object, choose this column, filter it &amp;lt;0.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I misunderstand your meanings, tell me in time. Thanks in advance~&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 05:24:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-15T05:24:30Z</dc:date>
    <item>
      <title>Measure that shows count of distinct items based on two conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-count-of-distinct-items-based-on-two/m-p/2768328#M86070</link>
      <description>&lt;P&gt;I am having a problem calculating my measure correctly. Let me explain...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the DISTINCTCOUNT of equipment items, where the status is active and the utilization is negative. I can easily get a distinct count of active equipment items by using -&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Active = CALCULATE(DISTINCTCOUNT(Utilization[Equipment]), FILTER(Utilization, Utilization[Status] = "A"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to account for items that are under utilized, I can't get it to work. Here is one iteration of what I have tried -&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Active Under Utilized = CALCULATE(DISTINCTCOUNT(Utilization[Equipment]), FILTER(Utilization, Utilization[Status] = "A" &amp;amp;&amp;amp; SUM(Utilization[Over Under] )&amp;lt; 0 ))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which gives me the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Based on the screenshot here, you can see that I want the Total Active Under Utilized to be 2 because the Total Over Under is only Under for two pieces of equipment in this filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I can acheive this?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 21:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-count-of-distinct-items-based-on-two/m-p/2768328#M86070</guid>
      <dc:creator>whodis118</dc:creator>
      <dc:date>2022-09-14T21:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows count of distinct items based on two conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-count-of-distinct-items-based-on-two/m-p/2768999#M86113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442026" data-lia-user-login="whodis118" class="lia-mention lia-mention-user"&gt;whodis118&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you want the result show the two equipments,&amp;nbsp; not three?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;But this sytnax is to filter "over under"&amp;lt;0, in your table , it seems to actually have three, so I think you need to change this filter object, choose this column, filter it &amp;lt;0.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I misunderstand your meanings, tell me in time. Thanks in advance~&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 05:24:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-count-of-distinct-items-based-on-two/m-p/2768999#M86113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T05:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows count of distinct items based on two conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-count-of-distinct-items-based-on-two/m-p/2770725#M86249</link>
      <description>&lt;P&gt;I may be mis-understanding, but it sounds like the proposed solution is the same as what I have already done?&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;choose this column, filter it &amp;lt;0" is what I have done, no?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this calculation to reflect the total for the given time frame. Here, the data is filtered to show the last week, and this is the result. Filtering it back two weeks, would add more items and the number would change.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 14:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-count-of-distinct-items-based-on-two/m-p/2770725#M86249</guid>
      <dc:creator>whodis118</dc:creator>
      <dc:date>2022-09-15T14:02:10Z</dc:date>
    </item>
  </channel>
</rss>

