<?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 blank end dates rows but not limited to slicer dates. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2856600#M91835</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the ALL function where would I put it in the below Dax expression? This expression currently counts all the rows with no end date - but only within the slicer's parameters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cases open =&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Enddatevisual = MAX ('Datetable' [Date])&lt;/P&gt;&lt;P&gt;VAR Startdatevisual = MIN&amp;nbsp;('Datetable' [Date])&lt;/P&gt;&lt;P&gt;VAR RSEULT = CALCULATE ([Total cases],&lt;/P&gt;&lt;P&gt;ISBLANK ('Table' [Enddate]))&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;RESULT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Sat, 22 Oct 2022 06:30:04 GMT</pubDate>
    <dc:creator>matrix_user</dc:creator>
    <dc:date>2022-10-22T06:30:04Z</dc:date>
    <item>
      <title>Count blank end dates rows but not limited to slicer dates.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2851643#M91433</link>
      <description>&lt;P&gt;I have data with no end date and these are considered open events. Below is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;1) I have filtered this using a slicer from startdate 01/01/2022 to enddate 31/12/2022.&lt;/P&gt;&lt;P&gt;2) I am seeking a DAX measure to count rows of all rows with blank endates but no limited to the slicer's parameters.&lt;/P&gt;&lt;P&gt;In the above example, the DAX measurer I am seeking will yeild 3 counts of rows with no end dates (icd 001, icd 003 and icd 008) despite having start dates outside the slicer's paremeters.&lt;/P&gt;&lt;P&gt;3) The DAX measure will yeild counts for rows with both start dates and end dates but will not yield icd 002 or icd 010 because they do not fall within the slicer's parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kudos for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:52:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2851643#M91433</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2022-10-19T14:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count blank end dates rows but not limited to slicer dates.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2853230#M91565</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329134" data-lia-user-login="matrix_user" class="lia-mention lia-mention-user"&gt;matrix_user&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use ALL() function to wrap the table and remove the filter while calculating.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/all-function-dax" target="_self"&gt;https://learn.microsoft.com/en-us/dax/all-function-dax&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 09:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2853230#M91565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-20T09:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count blank end dates rows but not limited to slicer dates.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2856600#M91835</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the ALL function where would I put it in the below Dax expression? This expression currently counts all the rows with no end date - but only within the slicer's parameters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cases open =&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Enddatevisual = MAX ('Datetable' [Date])&lt;/P&gt;&lt;P&gt;VAR Startdatevisual = MIN&amp;nbsp;('Datetable' [Date])&lt;/P&gt;&lt;P&gt;VAR RSEULT = CALCULATE ([Total cases],&lt;/P&gt;&lt;P&gt;ISBLANK ('Table' [Enddate]))&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;RESULT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2022 06:30:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2856600#M91835</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2022-10-22T06:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count blank end dates rows but not limited to slicer dates.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2856636#M91838</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AllDateswithBlank = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[enddate]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[startdate]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and for counting dates within the slice parameters:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CountRowsWithInSlicerParameters = &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[enddate]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 22 Oct 2022 07:32:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2856636#M91838</guid>
      <dc:creator>Karthikstark</dc:creator>
      <dc:date>2022-10-22T07:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count blank end dates rows but not limited to slicer dates.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2856653#M91843</link>
      <description>&lt;P&gt;I am still struggling with this... the end result I am trying to acheive is to count rows with start date BUT no end date AND not limited to slicer's start date of "01/01/2022"&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>Sat, 22 Oct 2022 08:03:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2856653#M91843</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2022-10-22T08:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count blank end dates rows but not limited to slicer dates.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2869641#M92555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329134" data-lia-user-login="matrix_user" class="lia-mention lia-mention-user"&gt;matrix_user&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Slicer works:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cases open = CALCULATE(COUNT('Table'[ID]),FILTER(ALL('Table'),'Table'[Startdate]&amp;lt;MAX(slicer[date])&amp;amp;&amp;amp;('Table'[Enddate]&amp;gt;MIN(slicer[date])||ISBLANK('Table'[Enddate]))))&lt;/LI-CODE&gt;
&lt;P&gt;Slicer&amp;nbsp;does not work:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cases open = CALCULATE(COUNT('Table'[ID]),FILTER(ALL('Table'),ISBLANK('Table' [Enddate])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 05:42:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-blank-end-dates-rows-but-not-limited-to-slicer-dates/m-p/2869641#M92555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-28T05:42:56Z</dc:date>
    </item>
  </channel>
</rss>

