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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Vauban
Helper I
Helper I

Query editor custom column to return most recent date in other column

Hi to all.  I am struggling with how to grab from another column the most recent date and with that date populate an entire new custom column.

The Meeting Date column is Date format.

I have tried these formulas with no success:

List.Max(Date.From[Meeting Date])

Date.From(List.Max([Meeting Date])) (tried both ways to see if anything worked)

 

I can't believe I'm missing this and will really appreciate anyone who can tell me what I am missing.

David

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Vauban , I echo Matt's statement in that I don't understand the end goal, but this is the M code you get you the max date from a column:

 

Add_CustomColumn = Table.AddColumn( Previous_Step, “Custom Column”, each
	List.Max(Previous_Step[Meeting Date]), type date)

You can reference a list with the symtax TableName[ColumnName].  You can add your additional logic to this pattern.

 

Just replace Previous_Step with the name of your step right before it in the query

 

Keep in mind that the step name Filtered Rows is actually #"Filtered Rows" in the advanced editor.  Name your steps with no spaces and you can avoid the #"" syntax.

View solution in original post

3 REPLIES 3
MattAllington
Community Champion
Community Champion

I think the bigger issue is “why are you trying to do this”?  Many new users treat data in Power BI as if it were Excel, but of course it is not Excel. What are you trying to do?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

@Vauban , I echo Matt's statement in that I don't understand the end goal, but this is the M code you get you the max date from a column:

 

Add_CustomColumn = Table.AddColumn( Previous_Step, “Custom Column”, each
	List.Max(Previous_Step[Meeting Date]), type date)

You can reference a list with the symtax TableName[ColumnName].  You can add your additional logic to this pattern.

 

Just replace Previous_Step with the name of your step right before it in the query

 

Keep in mind that the step name Filtered Rows is actually #"Filtered Rows" in the advanced editor.  Name your steps with no spaces and you can avoid the #"" syntax.

Thank you to both for your thoughts and the solution.  My Excel roots haunt me but for the now I just needed an intermediate step to evaluate when meetings where past a certain date.

All the best,

David

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors