<?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 Count, group by, Filter. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3394024#M128001</link>
    <description>&lt;P&gt;Thanks alot Joe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Exceed 80% = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Contract[Purchase Contract]&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;Contract&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Contract Consumption]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;0.8&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've tried the above measure but it will calculate the count on line item level.&amp;nbsp; The&amp;nbsp;&lt;STRONG&gt;Puchase Contracts&amp;nbsp;&lt;/STRONG&gt;have multiple items so i need the logic of the measure to calculate (Count) for the summed values for each&amp;nbsp;&lt;STRONG&gt;Puchase Contract. (&lt;/STRONG&gt;by &lt;STRONG&gt;grouping by&amp;nbsp;Puchase Contract&lt;/STRONG&gt; if possible&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please let me know if you need more&amp;nbsp;illustration.&lt;/DIV&gt;&lt;DIV&gt;Thanks again for your support&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 23 Aug 2023 06:18:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-23T06:18:31Z</dc:date>
    <item>
      <title>DAX Measure Count, group by, Filter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3391548#M127854</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write a meaure to Count the number of &lt;STRONG&gt;Puchase Contract&lt;/STRONG&gt;&amp;nbsp;if the Total&amp;nbsp;&lt;STRONG&gt;Contract Consumptoin% &lt;/STRONG&gt;exceeds 80% of the contract value.&lt;/P&gt;&lt;P&gt;Note: The&amp;nbsp;&lt;STRONG&gt;Puchase Contract &lt;/STRONG&gt;could have multiple items but i need the measure to count the&amp;nbsp;&lt;STRONG&gt;Puchase Contract &lt;/STRONG&gt;and apply the condition on the&amp;nbsp;&lt;STRONG&gt;Contract Consumptoin% &lt;/STRONG&gt;of&amp;nbsp;total items per&amp;nbsp;&lt;STRONG&gt;Puchase Contract&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;(the percentage of the summed items).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table= Contract&lt;/STRONG&gt;&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;&lt;P&gt;I would really apprecaite your support.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 05:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3391548#M127854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-22T05:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Count, group by, Filter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3392087#M127892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try this measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Exceed 80% = CALCULATE(COUNT(Contract[Purchase Contract]), KEEPFILTERS([Contract Consumption%]&amp;gt;= 0.8)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3392087#M127892</guid>
      <dc:creator>JoeBarry</dc:creator>
      <dc:date>2023-08-22T09:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Count, group by, Filter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3394024#M128001</link>
      <description>&lt;P&gt;Thanks alot Joe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Exceed 80% = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Contract[Purchase Contract]&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;Contract&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Contract Consumption]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;0.8&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've tried the above measure but it will calculate the count on line item level.&amp;nbsp; The&amp;nbsp;&lt;STRONG&gt;Puchase Contracts&amp;nbsp;&lt;/STRONG&gt;have multiple items so i need the logic of the measure to calculate (Count) for the summed values for each&amp;nbsp;&lt;STRONG&gt;Puchase Contract. (&lt;/STRONG&gt;by &lt;STRONG&gt;grouping by&amp;nbsp;Puchase Contract&lt;/STRONG&gt; if possible&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please let me know if you need more&amp;nbsp;illustration.&lt;/DIV&gt;&lt;DIV&gt;Thanks again for your support&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Aug 2023 06:18:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3394024#M128001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-23T06:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Count, group by, Filter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3394168#M128011</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you show me in a screenshot your expected outcome? Maybe create a table within your comment. And maybe if the data isn't sensitive a screenshot of a few lines of the table?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can also try below. Presuming there is a Value in each Row, this will count all rows, therefore checking each consumption is over 80%&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Exceed 80% = CALCULATE(COUNTROWS(Contract]), KEEPFILTERS([Contract Consumption%]&amp;gt;= 0.8)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you remove the Released Value from the Rows also after creating the measure from your Matrix, it should show you what you need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 07:44:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Count-group-by-Filter/m-p/3394168#M128011</guid>
      <dc:creator>JoeBarry</dc:creator>
      <dc:date>2023-08-23T07:44:05Z</dc:date>
    </item>
  </channel>
</rss>

