<?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 Count from SUMMARIZE over time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3119028#M110539</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to visualize how many bugs were opened or closed over time.&amp;nbsp;&lt;BR /&gt;For this my data consists of a table with BugVersions and their statuses, as well as a date table.&lt;/P&gt;&lt;P&gt;As I only want dates when the bugs were Opened/Closed I want the first version when they have either status "New" or "Done".&lt;/P&gt;&lt;P&gt;In order to do this I have been trying to use SUMMARY to look at the first date with either status, however when this is evaluated in the context of the date table, then all version still apear.&amp;nbsp;&lt;BR /&gt;The measure that I have so far looks as such:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For reference the SUMMARY table that I am creating looks as such:&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;Filtered on one bug, I get the following visual, from which I want to remove all lines, but the first green and first red&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 13:39:03 GMT</pubDate>
    <dc:creator>MAVIE</dc:creator>
    <dc:date>2023-03-09T13:39:03Z</dc:date>
    <item>
      <title>Count from SUMMARIZE over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3119028#M110539</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to visualize how many bugs were opened or closed over time.&amp;nbsp;&lt;BR /&gt;For this my data consists of a table with BugVersions and their statuses, as well as a date table.&lt;/P&gt;&lt;P&gt;As I only want dates when the bugs were Opened/Closed I want the first version when they have either status "New" or "Done".&lt;/P&gt;&lt;P&gt;In order to do this I have been trying to use SUMMARY to look at the first date with either status, however when this is evaluated in the context of the date table, then all version still apear.&amp;nbsp;&lt;BR /&gt;The measure that I have so far looks as such:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For reference the SUMMARY table that I am creating looks as such:&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;Filtered on one bug, I get the following visual, from which I want to remove all lines, but the first green and first red&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 13:39:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3119028#M110539</guid>
      <dc:creator>MAVIE</dc:creator>
      <dc:date>2023-03-09T13:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count from SUMMARIZE over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3121641#M110725</link>
      <description>&lt;P&gt;I have been able to get the correct result by first creating a calculated table and then creating a count based on that.&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;However this is not satisfactory, since I cannot use the same slicers for both the calculated table and the FactBugs_T2 table.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 13:47:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3121641#M110725</guid>
      <dc:creator>MAVIE</dc:creator>
      <dc:date>2023-03-09T13:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count from SUMMARIZE over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3128557#M111218</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388699" data-lia-user-login="MAVIE" class="lia-mention lia-mention-user"&gt;MAVIE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Measure2 =&lt;BR /&gt;VAR T =&lt;BR /&gt;ALLSELECTED ( 'Date'[Year] )&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;SELECTEDVALUE ( 'Date'[Year] )&lt;BR /&gt;IN { MINX ( T, 'Date'[Year] ), MAXX ( T, 'Date'[Year] ) },&lt;BR /&gt;[Measure]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:48:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3128557#M111218</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-13T15:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count from SUMMARIZE over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3129161#M111270</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the measure only filters the date dimension to the current year, but does not filter the bug versions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix that I am trying to achieve is one that applies a filter on my table FactBugs_T2, such that I only get the earliest version of the "Bug" where it has status "New" and "Done" for each day in my date dimension.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For that reason I have been trying to use the following measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
VAR BugGroup = 

    CALCULATETABLE(
        SUMMARIZE (
              FactBugs_T2,
              FactBugs_T2[BugID],
              FactBugs_T2[BugType],
              FactBugs_T2[LookupStatusType],
              "FirstVersion",
              MIN ( FactBugs_T2[VersionCreated] )
        ),
        FactBugs_T2[LookupStatusType] IN {"New","Done"}
    )

RETURN 
COUNTROWS ( BugGroup )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;This does not seem to apply the filters to FactBugs_T2[VersionCreated] in the right context.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I first create a calculated table with same code as in VAR BugGroup, and then creates a measure to COUNTROWS on that, then I get the correct result, however then other slicers from my report do not work with the measure.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope that makes sense.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Mar 2023 20:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-from-SUMMARIZE-over-time/m-p/3129161#M111270</guid>
      <dc:creator>MAVIE</dc:creator>
      <dc:date>2023-03-13T20:32:49Z</dc:date>
    </item>
  </channel>
</rss>

