<?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: Count rows with conditions in matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112069#M109983</link>
    <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524072" data-lia-user-login="kentsharp" class="lia-mention lia-mention-user"&gt;kentsharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;focus on your expectation and orginal dataset.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Mar 2023 05:55:37 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-03-05T05:55:37Z</dc:date>
    <item>
      <title>Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112058#M109982</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Looking for some support on counting rows in a matrix if the conditions are met. The dataset i have is field crews working on multiple jobs in a day and i want to count if that day has sumofhours over certain thresholds.&amp;nbsp; I have a measure if its &amp;lt;=12, but it's counthing the jobs on a day instead of it being the sumofhours on that day &amp;lt;=12 hours.&amp;nbsp; How might it be best to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 04:46:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112058#M109982</guid>
      <dc:creator>kentsharp</dc:creator>
      <dc:date>2023-03-05T04:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112069#M109983</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524072" data-lia-user-login="kentsharp" class="lia-mention lia-mention-user"&gt;kentsharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;focus on your expectation and orginal dataset.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 05:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112069#M109983</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-05T05:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112072#M109984</link>
      <description>&lt;P&gt;Thanks for the response, but i'm not entirly sure I understand what your mean.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 06:01:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112072#M109984</guid>
      <dc:creator>kentsharp</dc:creator>
      <dc:date>2023-03-05T06:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112074#M109985</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524072" data-lia-user-login="kentsharp" class="lia-mention lia-mention-user"&gt;kentsharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i mean try to provide your sample dataset and expected result, all the others could be distracting.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 06:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112074#M109985</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-05T06:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112101#M109987</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524072" data-lia-user-login="kentsharp" class="lia-mention lia-mention-user"&gt;kentsharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you may try&lt;/P&gt;
&lt;P&gt;SUMX (&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VALUES ( 'Table'[Date] ),&lt;/P&gt;
&lt;P&gt;VAR SumOfHours = [SumofHours]&lt;BR /&gt;RETURN&lt;/P&gt;
&lt;P&gt;IF (&amp;nbsp;&lt;SPAN&gt;SumOfHours &amp;lt;= 12,&amp;nbsp;SumOfHours )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 08:06:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112101#M109987</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-05T08:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112309#M110014</link>
      <description>&lt;P&gt;I see...thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the data.&amp;nbsp; The resusult i'm looking for is to count the number of days an employee has specifc hours in a day.&amp;nbsp; &amp;nbsp;They can work on multiple jobs in a day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;time_entry_employee&amp;nbsp; &amp;nbsp; &amp;nbsp; Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;jobNumber&amp;nbsp; Hours&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Abdel Daoud&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-0989-1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Alex Trenchie&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-3115-0&lt;/TD&gt;&lt;TD&gt;6.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Alex Trenchie&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-6019-0&lt;/TD&gt;&lt;TD&gt;5.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Barry Ubell&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;18-1202-7&lt;/TD&gt;&lt;TD&gt;3.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Barry Ubell&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;23-0339-0&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Benoit Hupe&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;23-0069-0&lt;/TD&gt;&lt;TD&gt;2.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Benoit Hupe&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;23-0305-0&lt;/TD&gt;&lt;TD&gt;4.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Benoit Hupe&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;23-0306-0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Braden Parley&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-3730-2&lt;/TD&gt;&lt;TD&gt;5.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Braden Parley&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-3738-0&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Brady Sahulka&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-0883-2&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Camara Froese&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-2268-1&lt;/TD&gt;&lt;TD&gt;5.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Camara Froese&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;23-0317-0&lt;/TD&gt;&lt;TD&gt;6.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Caydan Lachapelle&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;21-3430-0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Caydan Lachapelle&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-2276-2&lt;/TD&gt;&lt;TD&gt;3.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Caydan Lachapelle&lt;/TD&gt;&lt;TD&gt;2023-02-01 0:00&lt;/TD&gt;&lt;TD&gt;22-3863-0&lt;/TD&gt;&lt;TD&gt;5.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 14:43:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112309#M110014</guid>
      <dc:creator>kentsharp</dc:creator>
      <dc:date>2023-03-05T14:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112316#M110015</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524072" data-lia-user-login="kentsharp" class="lia-mention lia-mention-user"&gt;kentsharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you also provide your expected result in a table?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 14:52:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112316#M110015</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-05T14:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112380#M110025</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 15:31:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112380#M110025</guid>
      <dc:creator>kentsharp</dc:creator>
      <dc:date>2023-03-05T15:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows with conditions in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112390#M110027</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524072" data-lia-user-login="kentsharp" class="lia-mention lia-mention-user"&gt;kentsharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;SUMX (&lt;BR /&gt;SUMMARIZE ( 'Table', 'Table'[Name], 'Table'[Date] ),&lt;BR /&gt;VAR SumOfHours = [SumofHours] RETURN IF ( SumOfHours &amp;lt;= 12, SumOfHours )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 15:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-with-conditions-in-matrix/m-p/3112390#M110027</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-05T15:37:49Z</dc:date>
    </item>
  </channel>
</rss>

