<?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: How to show status updates in same row in Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2441136#M65355</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332761" data-lia-user-login="dostdahl" class="lia-mention lia-mention-user"&gt;dostdahl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for this typo mistake. Please use&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Previous Status =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
VAR PreviousDate =
    MAXX ( MAX ( PreviousDatesTable ), Table[Date From] )
RETURN
    CALCULATE ( Table[Status], Table[Date From] = PreviousDate )&lt;/LI-CODE&gt;&lt;LI-CODE lang="php"&gt;Previous Date =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
RETURN
    MAXX ( PreviousDatesTable, Table[Date From] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 15:20:11 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-06T15:20:11Z</dc:date>
    <item>
      <title>How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2439086#M65229</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running into an issue with capturing a current status/date and a previous status/date and being able to show it in one row in a Table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset has a unique ID associated to each name. Per the example table below, it's showing each individual status change per ID. If an ID only has one current status/date associated with it, only one line needs to show (ex. ID #2). But if an ID has 2 or more status updates assoicated with it, I need the current status/date and previous status/date to show on the same line (ex. ID #1 and #3).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;TD&gt;Date From&lt;/TD&gt;&lt;TD&gt;Previous Status&lt;/TD&gt;&lt;TD&gt;Previous Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;1&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;John Doe&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Cultivation&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;3/16/2022&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Solicitation&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;3/14/2022&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;3/14/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/23/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Mike Smith&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;2/24/2022&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/17/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Mike Smith&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/17/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried a few different ways to solve this with DAX but haven't had any luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any assistance, please let me know if I can provide any additional information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Dereck&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:36:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2439086#M65229</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-05T21:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2439132#M65230</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332761" data-lia-user-login="dostdahl" class="lia-mention lia-mention-user"&gt;dostdahl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;new column:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Previous Status =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
VAR PreviousDate =
    MAXX ( PreviousDatesTable, Table[Date From] )
RETURN
    CALCULATE ( Table[Status], Table[Date From] = PreviousDate )&lt;/LI-CODE&gt;&lt;LI-CODE lang="php"&gt;Previous Date =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
RETURN
    MAXX ( PreviousDatesTable, Table[Date From] )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Apr 2022 22:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2439132#M65230</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-05T22:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2440766#M65329</link>
      <description>&lt;P&gt;Thank you for the suggestion, but I'm still running into an issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the Previous Status calculated column, the Return-Calculate functions gives an error when trying to use Table[Status] as the expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is "a single value for column 'Status' in Table cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried making the Status column a measure, using SELECTEDVALUE(Table[Status]), but still no luck. Any other suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 13:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2440766#M65329</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-06T13:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2441136#M65355</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332761" data-lia-user-login="dostdahl" class="lia-mention lia-mention-user"&gt;dostdahl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for this typo mistake. Please use&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Previous Status =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
VAR PreviousDate =
    MAXX ( MAX ( PreviousDatesTable ), Table[Date From] )
RETURN
    CALCULATE ( Table[Status], Table[Date From] = PreviousDate )&lt;/LI-CODE&gt;&lt;LI-CODE lang="php"&gt;Previous Date =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
RETURN
    MAXX ( PreviousDatesTable, Table[Date From] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:20:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2441136#M65355</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-06T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2444285#M65556</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;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the update, but I'm still getting an error on the Previous Status column that states "the MAX function only accepts a column reference as an argument."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And I'm still not able to use Table[Status] in the Return-Calculate statement in the end.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 19:37:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2444285#M65556</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-07T19:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2444296#M65557</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332761" data-lia-user-login="dostdahl" class="lia-mention lia-mention-user"&gt;dostdahl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the final updated solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Previous Status =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
VAR PreviousDate =
    MAXX ( PreviousDatesTable, Table[Date From] )
VAR PreviousDateRecord =
    FILTER ( PreviousDatesTable, Table[Date From] = PreviousDate )
RETURN
    MAXX ( PreviousDateRecord, Table[Status] )&lt;/LI-CODE&gt;&lt;LI-CODE lang="php"&gt;Previous Date =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
RETURN
    MAXX ( PreviousDatesTable, Table[Date From] &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 22:23:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2444296#M65557</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T22:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2444514#M65564</link>
      <description>&lt;P&gt;Thanks again&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;-&amp;nbsp; The error message went away, but the column returns blank entries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll keep looking into this, as I think it's close to what I need, but do you have any suggestions on how to get the current status/date and previous status/date to show on one line in a table?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 00:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2444514#M65564</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-08T00:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2444548#M65566</link>
      <description>&lt;P&gt;It shouod be possible. Can you please explain what exactly is required?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 00:58:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2444548#M65566</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T00:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2445668#M65616</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332761" data-lia-user-login="dostdahl" class="lia-mention lia-mention-user"&gt;dostdahl&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try my code to create two calculated columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Previous Status = 
VAR _MAXDATE =
    MAXX (
        FILTER ( ALL ( 'Table' ), 'Table'[ID] = EARLIER ( 'Table'[ID] ) ),
        'Table'[Date From]
    )
VAR _MAX_PREVIOUS_DATE =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[ID] = EARLIER ( 'Table'[ID] )
                &amp;amp;&amp;amp; 'Table'[Date From] &amp;lt; _MAXDATE
        ),
        'Table'[Date From]
    )
VAR _PREVIOUS_Status =
    CALCULATE (
        MAX ( 'Table'[Status] ),
        FILTER ( 'Table', 'Table'[Date From] = _MAX_PREVIOUS_DATE )
    )
RETURN
    IF ( 'Table'[Date From] = _MAXDATE, _PREVIOUS_Status )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Previous Date = 
VAR _MAXDATE =
    MAXX (
        FILTER ( ALL ( 'Table' ), 'Table'[ID] = EARLIER ( 'Table'[ID] ) ),
        'Table'[Date From]
    )
VAR _MAX_PREVIOUS_DATE =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[ID] = EARLIER ( 'Table'[ID] )
                &amp;amp;&amp;amp; 'Table'[Date From] &amp;lt; _MAXDATE
        ),
        'Table'[Date From]
    )
RETURN
    IF ( 'Table'[Date From] = _MAXDATE, _MAX_PREVIOUS_DATE )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 10:10:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2445668#M65616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-08T10:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446208#M65647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, these calculated columns appear to be working well. When I lay it out in a Table visual (like your attached result screenshot), the IDs that have multiple status updates appear more than once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to show each ID once, whether they have a previous status or a singular status?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected end result would look like&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;TD&gt;Date From&lt;/TD&gt;&lt;TD&gt;Previous Status&lt;/TD&gt;&lt;TD&gt;Previous Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;Cultivation&lt;/TD&gt;&lt;TD&gt;3/16/2022&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;3/14/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/23/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Mike Smith&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;2/24/2022&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/17/2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 14:00:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446208#M65647</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-08T14:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446214#M65648</link>
      <description>&lt;P&gt;My current table looks like this&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;TD&gt;Date From&lt;/TD&gt;&lt;TD&gt;Previous Status&lt;/TD&gt;&lt;TD&gt;Previous Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;Cultivation&lt;/TD&gt;&lt;TD&gt;3/16/2022&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;3/14/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;3/14/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/23/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Mike Smith&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;2/24/2022&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/17/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Mike Smith&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/17/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected end result would look like&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;TD&gt;Date From&lt;/TD&gt;&lt;TD&gt;Previous Status&lt;/TD&gt;&lt;TD&gt;Previous Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;Cultivation&lt;/TD&gt;&lt;TD&gt;3/16/2022&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;3/14/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/23/2022&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Mike Smith&lt;/TD&gt;&lt;TD&gt;Solicitation&lt;/TD&gt;&lt;TD&gt;2/24/2022&lt;/TD&gt;&lt;TD&gt;Stewardship&lt;/TD&gt;&lt;TD&gt;2/17/2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 14:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446214#M65648</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-08T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446424#M65673</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332761" data-lia-user-login="dostdahl" class="lia-mention lia-mention-user"&gt;dostdahl&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;are you creating a new column or a measure? This is a code for a calculated column not a measure. However, it could be EARLIER that makes trouble. Please try this with a variable instead&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Previous Date =
VAR CurrentDate =
    MAX ( Table[Date From] )
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; CurrentDate )
RETURN
    MAXX ( PreviousDatesTable, Table[Date From] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 15:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446424#M65673</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T15:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446891#M65711</link>
      <description>&lt;P&gt;I had been creating as a column. The Previous Date column you created seemed to be working great, it was the Previous Status column that was returning blanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 21:52:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446891#M65711</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-08T21:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446923#M65717</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332761" data-lia-user-login="dostdahl" class="lia-mention lia-mention-user"&gt;dostdahl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had edited the code in the previous reply which contains the code of both columns. Please try and let me know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 22:16:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2446923#M65717</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T22:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2448067#M65787</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332761" data-lia-user-login="dostdahl" class="lia-mention lia-mention-user"&gt;dostdahl&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can create a measure and add this measure into the visual level filter of this table visual.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Filter = 
RANKX (
    FILTER ( ALL ( 'Table' ), 'Table'[ID] = MAX ( 'Table'[ID] ) ),
    CALCULATE ( MAX ( 'Table'[Date From] ) ),
    ,
    DESC,
    DENSE
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 02:06:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2448067#M65787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-11T02:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2448101#M65788</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/332761" target="_blank" rel="noopener"&gt;@dostdahl&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the final updated solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Previous Status =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
VAR PreviousDate =
    MAXX ( PreviousDatesTable, Table[Date From] )
VAR PreviousDateRecord =
    FILTER ( PreviousDatesTable, Table[Date From] = PreviousDate )
RETURN
    MAXX ( PreviousDateRecord, Table[Status] )&lt;/LI-CODE&gt;&lt;LI-CODE lang="php"&gt;Previous Date =
VAR CurrentIdTable =
    CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) )
VAR PreviousDatesTable =
    FILTER ( CurrentIdTable, Table[Date From] &amp;lt; EARLIER ( Table[Date From] ) )
RETURN
    MAXX ( PreviousDatesTable, Table[Date From]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 02:31:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2448101#M65788</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-11T02:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2449664#M65880</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;Anonymous&lt;/a&gt;,&amp;nbsp;this measure works well! I appreicate the help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 12:55:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2449664#M65880</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-11T12:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to show status updates in same row in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2449670#M65882</link>
      <description>&lt;P&gt;Thank you so much&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;- These columns are now returning the values that I need. Really appreciate your time and effort with this!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 12:57:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-status-updates-in-same-row-in-Table/m-p/2449670#M65882</guid>
      <dc:creator>dostdahl</dc:creator>
      <dc:date>2022-04-11T12:57:02Z</dc:date>
    </item>
  </channel>
</rss>

