<?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: Get count in filtered context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575513#M137851</link>
    <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/wfnc4ou94yfvbmbhq5fg3/Test-File-Copy.pbix?rlkey=2kz4248k0dd5fmbgedcxhaiq7&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/wfnc4ou94yfvbmbhq5fg3/Test-File-Copy.pbix?rlkey=2kz4248k0dd5fmbgedcxhaiq7&amp;amp;dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does this work?&lt;/P&gt;</description>
    <pubDate>Sat, 09 Dec 2023 11:18:07 GMT</pubDate>
    <dc:creator>Mahmed1</dc:creator>
    <dc:date>2023-12-09T11:18:07Z</dc:date>
    <item>
      <title>Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3574776#M137826</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you are all well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a slicer where i can select a date range and &amp;nbsp;a parameter box where i can filter anything above whatever is this parameter value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i am trying to do is get the rows of any activity that is &amp;gt;= to the parameter value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set a measure like this&lt;/P&gt;&lt;P&gt;check act value = If(tbl_my_act[activity]&amp;gt;=Parameter[parameter_value],1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then added this to my matrix and on filtered page view filtered to 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem i am having is that it pulls back all records that meet criteria but the total is not right&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are 4 records that meet the criteria&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;name. Act&lt;/P&gt;&lt;P&gt;John 20&lt;/P&gt;&lt;P&gt;Henry 20&lt;/P&gt;&lt;P&gt;Joe 20&lt;/P&gt;&lt;P&gt;Harry 20&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i drag in the measure check act val the total shows 1 and not 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i also need a seperate measure that looks at the date range and gives the number of times its met the criteria per day&lt;/P&gt;&lt;P&gt;so if i selected 04/12 to 06/12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;agent 1 3&lt;/P&gt;&lt;P&gt;agent 2 = 2&lt;BR /&gt;agent 3 = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so agent 1 met the criteria on all 3 days&lt;/P&gt;&lt;P&gt;agent 2 only twice etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this makes sense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the results should show what is in textbox which i typed in manually&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;in example below - a is when condition was met&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see matrix does not give right total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 17:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3574776#M137826</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-08T17:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575331#M137842</link>
      <description>&lt;P&gt;Hi any luck with this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help is appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 03:04:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575331#M137842</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-09T03:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575501#M137849</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490932" data-lia-user-login="Mahmed1" class="lia-mention lia-mention-user"&gt;Mahmed1&lt;/a&gt;&amp;nbsp;please put some file or examples with inputs and expected output as you wish to have "correct" total and "play" with dates range.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 10:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575501#M137849</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-12-09T10:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575511#M137850</link>
      <description>&lt;P&gt;hi how do i send a file - says pbix not supported&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 11:12:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575511#M137850</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-09T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575513#M137851</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/wfnc4ou94yfvbmbhq5fg3/Test-File-Copy.pbix?rlkey=2kz4248k0dd5fmbgedcxhaiq7&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/wfnc4ou94yfvbmbhq5fg3/Test-File-Copy.pbix?rlkey=2kz4248k0dd5fmbgedcxhaiq7&amp;amp;dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does this work?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 11:18:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3575513#M137851</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-09T11:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3576350#M137887</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490932" data-lia-user-login="Mahmed1" class="lia-mention lia-mention-user"&gt;Mahmed1&lt;/a&gt;&amp;nbsp; I can see file. I will let you know what I can do.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 20:35:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3576350#M137887</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-12-10T20:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3576354#M137888</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 20:49:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3576354#M137888</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-10T20:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3577548#M137956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490932" data-lia-user-login="Mahmed1" class="lia-mention lia-mention-user"&gt;Mahmed1&lt;/a&gt;&amp;nbsp; check file version v2 for part occurance&lt;/P&gt;
&lt;P&gt;For 16.12.2023 according to table there is only one row of entry&lt;/P&gt;
&lt;P&gt;&lt;img /&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;</description>
      <pubDate>Mon, 11 Dec 2023 13:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3577548#M137956</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-12-11T13:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3577766#M137967</link>
      <description>&lt;P&gt;Thank you for getting back to me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it doesnt quite work but think its on the same lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for eg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;say Blueberry category on the&amp;nbsp;&lt;/P&gt;&lt;P&gt;06/11 had a length of 13 twice so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;06/11 13 Blueberry&lt;/P&gt;&lt;P&gt;06/11 13 Blueberry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the parameter had 15 selected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the result in this case as the max is 13 will return a blank but its actually 26 the total length so should return a 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get rather than the max in needs to look at the sum for that category and then compare it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do i just need to change to Sum from Max?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 14:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3577766#M137967</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-11T14:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3577814#M137969</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;even if i change to sumx or sum and comare that value against parameter i get incorrect result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It ahould check for total length per day for that category and then compare&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if i had 2 rows on 01/11 both 9 mins each (18 mins total) comparing against 15 mins in parameter box, that ahould be 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If exactly the same on 02/11 then that would be another 1 so in total 2 occurences for both days&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 14:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3577814#M137969</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-11T14:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3577993#M137975</link>
      <description>&lt;P&gt;Hey - For eg see this example file - tried amending with new data but used same measure you created&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/tg69tbwwdtgk2qzc00lnj/Test-Latest-Examples.pbix?rlkey=1kqhx6f8t1qrdx8e442ryaol0&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/tg69tbwwdtgk2qzc00lnj/Test-Latest-Examples.pbix?rlkey=1kqhx6f8t1qrdx8e442ryaol0&amp;amp;dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 16:21:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3577993#M137975</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-11T16:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3586935#M138388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490932" data-lia-user-login="Mahmed1" class="lia-mention lia-mention-user"&gt;Mahmed1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check new file version 16122023&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2023 14:52:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3586935#M138388</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-12-16T14:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get count in filtered context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3587730#M138474</link>
      <description>&lt;P&gt;PERFECT....Thank You&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 20:27:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-count-in-filtered-context/m-p/3587730#M138474</guid>
      <dc:creator>Mahmed1</dc:creator>
      <dc:date>2023-12-17T20:27:55Z</dc:date>
    </item>
  </channel>
</rss>

