<?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: Include rows where the date value is greater than the period end being reported in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2297228#M56641</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="41912" data-lia-user-login="joris" class="lia-mention lia-mention-user"&gt;joris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seems to have done the trick. At first, my results were not as expected, however, I change the &amp;lt;= to &amp;gt; and now getting the correct results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jan 2022 20:13:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-01-23T20:13:07Z</dc:date>
    <item>
      <title>Include rows where the date value is greater than the period end being reported</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2296396#M56609</link>
      <description>&lt;P&gt;Hi, I am new to PowerBI and have been busy putting together a report to replace our current excel dashboard that reports Service Tickets.&lt;/P&gt;&lt;P&gt;My issue is that when we are ready to report, some of the tickets that were open at the reporting period end date have since closed, therefore I am not getting a true reflection of tickets that were open. For example...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TICKET&lt;/TD&gt;&lt;TD&gt;CREATED&lt;/TD&gt;&lt;TD&gt;RESOLVED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SD-01&lt;/TD&gt;&lt;TD&gt;14 Dec 2021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SD-02&lt;/TD&gt;&lt;TD&gt;15 Dec 2021&lt;/TD&gt;&lt;TD&gt;18 Dec 2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SD-03&lt;/TD&gt;&lt;TD&gt;16 Dec 2021&lt;/TD&gt;&lt;TD&gt;05 January 2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Period Reporting End Date - 31 December 2021&lt;/P&gt;&lt;P&gt;Report run on - 15 January 2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above example, as at 31/12/21, there are two tickets open that have not yet been resolved (SD-01 and SD-03). However if I create a measure to countblank on Resolved column, the answer returned is 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to create a measure that counts all records where a ticket was open as at the reporting period end date of 31/12/21 and include those that have a resolved date after 31/12/2021.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dean&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 22:53:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2296396#M56609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-21T22:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Include rows where the date value is greater than the period end being reported</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2296510#M56611</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;calculate(countrows([table]), filter(values(table[resolved]),OR(table[resolved]&amp;nbsp;&lt;SPAN&gt;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;today&lt;/SPAN&gt;&lt;SPAN&gt;(),-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),isblank(table[resolved]))))&lt;BR /&gt;&lt;BR /&gt;This will only count the tickets where resolved = blank or that have been resolved on or before the last day of the previousmonth.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 09:43:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2296510#M56611</guid>
      <dc:creator>joris</dc:creator>
      <dc:date>2022-01-22T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Include rows where the date value is greater than the period end being reported</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2296516#M56612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@I'm going to suggest using the CALCULATE function to change the 'filter context' (ie the filters that apply to the calculation).&lt;/P&gt;
&lt;P&gt;Before getting to that though - how do you know the reporting period? &amp;nbsp;A common way to do it is having a date table that's not connected to any other tables in the model and allowing the user to select a date. &amp;nbsp;This measure uses this method.&lt;/P&gt;
&lt;P&gt;Open Tickets =&lt;BR /&gt;VAR _ReportingPeriodEnd = MAX('Date'[Date])&lt;/P&gt;
&lt;P&gt;VAR _Blank =&lt;BR /&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;COUNTROWS(Tickets),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ISBLANK(Tickets[RESOLVED]),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tickets[CREATED] &amp;lt;= _ReportingPeriodEnd&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;VAR _WasOpen =&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;COUNTROWS(Tickets),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Tickets[CREATED] &amp;lt;= _ReportingPeriodEnd,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tickets[RESOLVED]) &amp;gt;=&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;&amp;nbsp;_ReportingPeriodEnd&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;VAR _Result = _Blank + _WasOpen&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; _Result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want to use the date table to have the user select the reporting period end date you can alter the VAR _ReportingPeriodEnd line. With the date table you can do things like put it as the x-axis on a bar or line chart to show the change in number of open tickets over time&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 10:02:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2296516#M56612</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-01-22T10:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Include rows where the date value is greater than the period end being reported</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2297225#M56639</link>
      <description>&lt;P&gt;Many thanks for the response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;The report is only run by myself and I am manipulating the datasource in the backgorund. So, records that were created after the reporting period end, I am deleting from the file. As mentioned, I am new to all this, so in comparison to the reports an experienced PowerBI person creates, mine will seem very clunky and inefficient, with that being said, what I am so far producing is 100 times better than what we had, so am happy....&lt;/P&gt;&lt;P&gt;As I become more experienced, I aim to replace with something better....&lt;/P&gt;&lt;P&gt;My report does contain a Date table, so thank you for the useful tip...&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Dean&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 20:10:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2297225#M56639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-23T20:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Include rows where the date value is greater than the period end being reported</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2297228#M56641</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="41912" data-lia-user-login="joris" class="lia-mention lia-mention-user"&gt;joris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seems to have done the trick. At first, my results were not as expected, however, I change the &amp;lt;= to &amp;gt; and now getting the correct results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 20:13:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2297228#M56641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-23T20:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Include rows where the date value is greater than the period end being reported</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2298227#M56673</link>
      <description>&lt;P&gt;Glad to hear it worked. The results in my example were for resolved cases, but after reading your post again you were looking for unresolved ones. It can be used for both, by changing the operator, as you figured out already.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 09:45:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Include-rows-where-the-date-value-is-greater-than-the-period-end/m-p/2298227#M56673</guid>
      <dc:creator>joris</dc:creator>
      <dc:date>2022-01-24T09:45:45Z</dc:date>
    </item>
  </channel>
</rss>

