Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 77 | |
| 37 | |
| 31 | |
| 29 | |
| 26 |