<?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 Function for grouping/counting based on filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3225118#M118086</link>
    <description>&lt;P&gt;I tried this but it's not working as expected.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Still getting a value which was closed in S01(&lt;STRONG&gt;Sprint 01 date range - 1/1/2023 to 15/1/2023&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;WorkItem 113 was closed in S01.&lt;BR /&gt;It has was put to &lt;STRONG&gt;Dev&lt;/STRONG&gt; on 1/3/2023 and also got&amp;nbsp;&lt;STRONG&gt;Closed&amp;nbsp;&lt;/STRONG&gt;on 1/3/2023.&lt;BR /&gt;&lt;BR /&gt;So, Ideally WorkItem 113 should not be counted in S01 in the measure, as it was closed in &lt;STRONG&gt;S01.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 14:26:47 GMT</pubDate>
    <dc:creator>shubhamsaha29</dc:creator>
    <dc:date>2023-05-08T14:26:47Z</dc:date>
    <item>
      <title>DAX Function for grouping/counting based on filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3224321#M118010</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;I need some help figuring out dax for this scenario&lt;/P&gt;&lt;P&gt;I have this kind of table with duplicates:&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 want to display count of incomplete workItems for specific sprints.&lt;/P&gt;&lt;P&gt;It should show the &lt;STRONG&gt;count&lt;/STRONG&gt; of WorkItems whose state is &lt;STRONG&gt;not closed&lt;/STRONG&gt; in specific sprint(say S01) should count as 1 and if closed in S02 then the count should be 0 for that sprint.&lt;/P&gt;&lt;P&gt;Ex:Visual should look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Since WorkItem &lt;STRONG&gt;111&lt;/STRONG&gt; and &lt;STRONG&gt;112&lt;/STRONG&gt; is not complete(&lt;STRONG&gt;State not equals&lt;/STRONG&gt; &lt;STRONG&gt;Closed&lt;/STRONG&gt;) in S01, so counting them as &lt;STRONG&gt;2&lt;/STRONG&gt; and as in S02 both are in closed state, so not counting them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DAX which I wrote is not working:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Incomplete =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNT(&lt;BR /&gt;'UserStories'[Work Item Id]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'UserStories',&lt;BR /&gt;'UserStories'[State]&amp;lt;&amp;gt;"Closed"&lt;BR /&gt;))&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 06:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3224321#M118010</guid>
      <dc:creator>shubhamsaha29</dc:creator>
      <dc:date>2023-05-08T06:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function for grouping/counting based on filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3224335#M118012</link>
      <description>&lt;P&gt;hello it wasnt very clear how did you get the result from the sample cahrt you gave us? like how did you get s01 is 2 and s02 is 0 can you please elaborate more?&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 06:25:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3224335#M118012</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-08T06:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function for grouping/counting based on filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3224353#M118015</link>
      <description>&lt;P&gt;It's based of our Jira board.&lt;BR /&gt;Each row is a snapshot our workitems with their fields, like which sprint the Workitem is assigned to, what is it's current state, whom is it assigned to and many more fields which are captured from the Jira tracking page.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 06:34:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3224353#M118015</guid>
      <dc:creator>shubhamsaha29</dc:creator>
      <dc:date>2023-05-08T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function for grouping/counting based on filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3225055#M118081</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="355197" data-lia-user-login="shubhamsaha29" class="lia-mention lia-mention-user"&gt;shubhamsaha29&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to plot a visual with the sprint column and a measure like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Incomplete = 
CALCULATE(
    DISTINCTCOUNT(data[WorkItemID]),
    FILTER(
        data,
        NOT "Closed" IN VALUES(data[State])
    )
)+0&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 13:55:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3225055#M118081</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-08T13:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function for grouping/counting based on filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3225118#M118086</link>
      <description>&lt;P&gt;I tried this but it's not working as expected.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Still getting a value which was closed in S01(&lt;STRONG&gt;Sprint 01 date range - 1/1/2023 to 15/1/2023&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;WorkItem 113 was closed in S01.&lt;BR /&gt;It has was put to &lt;STRONG&gt;Dev&lt;/STRONG&gt; on 1/3/2023 and also got&amp;nbsp;&lt;STRONG&gt;Closed&amp;nbsp;&lt;/STRONG&gt;on 1/3/2023.&lt;BR /&gt;&lt;BR /&gt;So, Ideally WorkItem 113 should not be counted in S01 in the measure, as it was closed in &lt;STRONG&gt;S01.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 14:26:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-for-grouping-counting-based-on-filters/m-p/3225118#M118086</guid>
      <dc:creator>shubhamsaha29</dc:creator>
      <dc:date>2023-05-08T14:26:47Z</dc:date>
    </item>
  </channel>
</rss>

