Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Andrei
Regular Visitor

Power Query

Hi all,

I need to solve the following problem in Power Query . I need to find tha max of the date column per client and repeat that information in a separate column until the client name changes. I know how to do this in Excel, but this data is imported in Power Query from a different source, so i need to solve this in Power Query. Can't find an easy way to compare rows in Power Query.

Please find bellow a data sample.

 

Kind regards,

Andrei

 

ClientRepaymentDateRequired
abc$1001/02/201901/12/2019
abc$1001/03/201901/12/2019
abc$1001/04/201901/12/2019
abc$1001/05/201901/12/2019
abc$1001/06/201901/12/2019
abc$1001/07/201901/12/2019
abc$1001/08/201901/12/2019
abc$1001/09/201901/12/2019
abc$1001/10/201901/12/2019
abc$1001/11/201901/12/2019
abc$1001/12/201901/12/2019
xyz$1201/01/202201/11/2022
xyz$1201/02/202201/11/2022
xyz$1201/03/202201/11/2022
xyz$1201/04/202201/11/2022
xyz$1201/05/202201/11/2022
xyz$1201/06/202201/11/2022
xyz$1201/07/202201/11/2022
xyz$1201/08/202201/11/2022
xyz$1201/09/202201/11/2022
xyz$1201/10/202201/11/2022
xyz$1201/11/202201/11/2022
1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

Hi @Andrei 

 

You can do it from Query Editor's user interface as follows.

Then Expand the AllRows Column

 

grby.png


Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

Hi @Andrei 

 

You can do it from Query Editor's user interface as follows.

Then Expand the AllRows Column

 

grby.png


Regards
Zubair

Please try my custom visuals

Thanks for your help, but this is just filtering the table by client and showing me the max date for that client. i need it unfiltered with that max date repeating on a different column until the client name changes.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.