<?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 can I only show latest updated row for Sequential Data in Power BI/Query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-only-show-latest-updated-row-for-Sequential-Data-in/m-p/3745611#M146072</link>
    <description>&lt;P&gt;Hello Ada,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the DAX formula you gave (actual formula below) and instead of assigning 1 for each Parent or Customer Name, it's assigning 1 to every row that is the most recent data. So the total Table that has 3000+ lines has only 15 rows as '1' and it's because all of those rows have Date of Update of March 4, 2024.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IsLatestUpdate =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;CurrentDate&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;'CAP/CAT Combined'&lt;/SPAN&gt;&lt;SPAN&gt;[Date of Update]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;CurrentParent&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;'CAP/CAT Combined'&lt;/SPAN&gt;&lt;SPAN&gt;[* Parent vs Child]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&l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gt;</description>
    <pubDate>Wed, 06 Mar 2024 09:32:39 GMT</pubDate>
    <dc:creator>rouelandrew</dc:creator>
    <dc:date>2024-03-06T09:32:39Z</dc:date>
    <item>
      <title>How can I only show latest updated row for Sequential Data in Power BI/Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-only-show-latest-updated-row-for-Sequential-Data-in/m-p/3743193#M145978</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Need help with transforming data in PowerBI. Data is sequential and has a Parent, Child relationship.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Sample is in Excel but data is in Smartsheets which I can't manipulate using SQL&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I've connected PowerBI to Smartsheets and is directly pulling the data from there&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;it contains 1 row for each Parent and that Parent row would have a few columns filled up, but new events within that Parent would be in a Child row, which would have other columns filled up but would have the Customer Name, Customer #, etc. show as blank.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Some parent rows would not have other Child rows or events under it&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Data updates on a regular basis&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;What I need is to only show the latest row update from the Updates &amp;amp; History Column based on Date of Update when I create a Table Visualization in PBI Desktop.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Raw data looks like this:&lt;/SPAN&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;In the Table Visualization, the target view is this where the Date of Update and Updates &amp;amp; History columns only show the latest entry/row \when I filter under the Customer Name.&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Can this be done in Power Query/BI or using a DAX Formula?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2024 13:16:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-only-show-latest-updated-row-for-Sequential-Data-in/m-p/3743193#M145978</guid>
      <dc:creator>rouelandrew</dc:creator>
      <dc:date>2024-03-05T13:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I only show latest updated row for Sequential Data in Power BI/Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-only-show-latest-updated-row-for-Sequential-Data-in/m-p/3744916#M146042</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="689841" data-lia-user-login="rouelandrew" class="lia-mention lia-mention-user"&gt;rouelandrew&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on what you have described, you can use Power Query to transform the data and then apply DAX formulas in the visualisation for filtering. Here is a brief plan of action:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To transform data in Power Query&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Load the data into Power Query.&lt;/LI&gt;
&lt;LI&gt;To address the issue where Child rows have blank "Customer Name" and "Customer #" fields, use the "Fill Down" feature in Power Query. This will propagate the Parent's "Customer Name" and "Customer #" down to its Child rows. Select the "Customer Name" and "Customer #" columns, then go to the "Transform" tab and choose "Fill" -&amp;gt; "Down".&lt;/LI&gt;
&lt;LI&gt;Apply any filters to exclude unwanted data at this stage if necessary.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Creating calculated columns in Power BI Desktop&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use DAX to create a calculated column that identifies the latest "update date" for each parent data.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IsLatestUpdate = 
VAR CurrentDate = [Date of Update]
VAR CurrentParent = [Parent]
RETURN
IF(
    CurrentDate = CALCULATE(MAX([Date of Update]), FILTER(ALL('Table'), [Parent] = CurrentParent)),
    1,
    0
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filtering a table visualisation&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Apply a filter to the table visualisation to only include rows where "IsLatestUpdate" is equal to 1. This will ensure that only the latest update for each parent is displayed.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ada Wang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 09:47:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-only-show-latest-updated-row-for-Sequential-Data-in/m-p/3744916#M146042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-06T09:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I only show latest updated row for Sequential Data in Power BI/Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-only-show-latest-updated-row-for-Sequential-Data-in/m-p/3745611#M146072</link>
      <description>&lt;P&gt;Hello Ada,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the DAX formula you gave (actual formula below) and instead of assigning 1 for each Parent or Customer Name, it's assigning 1 to every row that is the most recent data. So the total Table that has 3000+ lines has only 15 rows as '1' and it's because all of those rows have Date of Update of March 4, 2024.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IsLatestUpdate =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;CurrentDate&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;'CAP/CAT Combined'&lt;/SPAN&gt;&lt;SPAN&gt;[Date of Update]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;CurrentParent&lt;/SPAN&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PAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Mar 2024 09:32:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-I-only-show-latest-updated-row-for-Sequential-Data-in/m-p/3745611#M146072</guid>
      <dc:creator>rouelandrew</dc:creator>
      <dc:date>2024-03-06T09:32:39Z</dc:date>
    </item>
  </channel>
</rss>

