<?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 Last Date with Filter DAX in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/173725#M5671</link>
    <description>&lt;P&gt;Hello There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if I should be using power BI to calculate my last date based on certain condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a below table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Batch Name| Process Name| Status | last successful run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each failed process for today, I want to show when was it ran successfully last time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically find the last date where status for the process is passed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can have a batch and under batch, I will have 25 processes and I need to see the last successful date for the each process if is failed today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do it at source by creating a view, but I don't want to include additional step tp cater this. It would be good if I can do it through DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 07:03:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-11T07:03:02Z</dc:date>
    <item>
      <title>Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/173725#M5671</link>
      <description>&lt;P&gt;Hello There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if I should be using power BI to calculate my last date based on certain condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a below table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Batch Name| Process Name| Status | last successful run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each failed process for today, I want to show when was it ran successfully last time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically find the last date where status for the process is passed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can have a batch and under batch, I will have 25 processes and I need to see the last successful date for the each process if is failed today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do it at source by creating a view, but I don't want to include additional step tp cater this. It would be good if I can do it through DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 07:03:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/173725#M5671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T07:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/173974#M5675</link>
      <description>&lt;P&gt;You should be able to create a measure like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Measure = CALCULATE(MAX('Table'[Date]),FILTER('Table',[Status]="Success"))&lt;/PRE&gt;&lt;P&gt;Put this in a table along with your columns you specified and you should be good to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 12:33:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/173974#M5675</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2017-05-11T12:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175153#M5694</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@smoupre wrote:&lt;BR /&gt;
&lt;P&gt;You should be able to create a measure like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Measure = CALCULATE(MAX('Table'[Date]),FILTER('Table',[Status]="Success"))&lt;/PRE&gt;
&lt;P&gt;Put this in a table along with your columns you specified and you should be good to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Just in case, you may use the process date('Table'[Date]) in a slicer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Measure =
CALCULATE (
    MAX ( 'Table'[Date] ),
    ALLEXCEPT ( 'Table', 'Table'[Batch Name], 'Table'[Process Name] ),
    FILTER ( 'Table', [Status] = "Success" )
)&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 May 2017 08:26:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175153#M5694</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-13T08:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175319#M5702</link>
      <description>&lt;P&gt;Thanks for the quick response&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&amp;amp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the DAX looks correct but when I use it in my report, it filters the entire table and shows only&amp;nbsp;successful processes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Basically, it doesn't show failed process and last successful date against it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/41286iFE8D5506412DC91A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the above test report, I need a last date against the first record, however, rest of the records should be visible too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use above DAX, &amp;nbsp;it filters all the record for status = "Completed".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/41287iD48DA4B15E637CA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 00:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175319#M5702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T00:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175329#M5703</link>
      <description>&lt;P&gt;Just to give you an overall view,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should look something like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Batch Name | Process Date| Process Name &amp;nbsp;| status | last date&lt;/P&gt;&lt;P&gt;B1 | 12-05-2017|P1 | PN1| Completed | &amp;nbsp;(NULL)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B2 | 13-05-2017|P2 | PN2| Completed | &amp;nbsp;(NULL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B1 | 14-05-2017|P1 | PN1| Failed|&amp;nbsp;12-05-2017&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 01:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175329#M5703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T01:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175359#M5704</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;Measure = 
VAR LastSuccessDate =CALCULATE (
    MAX ( 'Table'[Process Date] ),
    ALLEXCEPT ( 'Table', 'Table'[Batch Name], 'Table'[Process Name] ),
    FILTER ( 'Table', [Status] = "Completed" )
)
RETURN IF(ISBLANK(LastSuccessDate),"",LastSuccessDate)&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 May 2017 03:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175359#M5704</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-15T03:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175426#M5707</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;Thanks again, but this isn't working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is reproducing my records in the table for multiple times. &amp;nbsp;Repeated records are being displayed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 06:20:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175426#M5707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T06:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175440#M5709</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;Thanks again, but this isn't working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is reproducing my records in the table for multiple times. &amp;nbsp;Repeated records are being displayed.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Could you share a pbix with sample file? You can upload it to any web storage and share the download link.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 06:31:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175440#M5709</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-15T06:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175445#M5710</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;Apologies, I will not be&amp;nbsp;able to share it as per my org policy. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can explain the scenario here,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have batch table which&amp;nbsp;is my batch dim&lt;/P&gt;&lt;P&gt;I have process dim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process Audit and Batch audit are my facts and I am trying to generate the report using these tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The report will look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Batch name | Batch start | Batch End | Batch status | process Name| process start | process end| process status| last successful run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One batch will have multiple processes running on different days and if the process fails, I need to show when was the last time this process run successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried creating calculated column using below DAX as provided by you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last_date_col =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MAX ('process_audit_dup'[process_start]),&lt;BR /&gt;FILTER ('process_audit_dup', 'process_audit'[process_status] = "Completed" &amp;amp;&amp;amp; RELATED([process_guid])= 'process_audit_dup'[process_guid])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did was, created a duplicate&amp;nbsp;table with the same column and filter&amp;nbsp;the duplicate table and then joining with original table to find the last date. But Still, this isn't working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 06:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/175445#M5710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T06:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last Date with Filter DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/3522818#M45272</link>
      <description>&lt;P&gt;I am working on a similar problem but need to identify the NAME by substring as they contain the date in the Name too but it is not working: (the goal is to display the date)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Meridian Membership = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'JHNMeridian'[Date created]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'JHNMeridian'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Name]&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"Membership"&lt;/SPAN&gt;&lt;SPAN&gt;}))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Nov 2023 15:14:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Last-Date-with-Filter-DAX/m-p/3522818#M45272</guid>
      <dc:creator>Karolina411</dc:creator>
      <dc:date>2023-11-08T15:14:57Z</dc:date>
    </item>
  </channel>
</rss>

