Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I am in power query. I have 4 date columns. I want to calculate the maximum date.
In DAX, I would use:
max(max([column1],[column2]),max([column3,column4))
How do I do this in power query (when I click on add column and enter a formula), as it will save time and effor later on
Thanks
Solved! Go to Solution.
Hi @Anonymous,
You could create a custom column with the query below. Please note that you should create the Index column from 0 firstly.
= Table.AddColumn(#"Added Index", "Custom", each List.Max(Record.ToList(Table.RemoveColumns(#"Added Index","Index"){[Index]})))
Then you will get your desired output.
More destails, you also could refer to the attachment.
Best Regards,
Cherry
Hi @Anonymous,
You could create a custom column with the query below. Please note that you should create the Index column from 0 firstly.
= Table.AddColumn(#"Added Index", "Custom", each List.Max(Record.ToList(Table.RemoveColumns(#"Added Index","Index"){[Index]})))
Then you will get your desired output.
More destails, you also could refer to the attachment.
Best Regards,
Cherry
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 21 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 41 | |
| 33 | |
| 31 |