Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
144 | |
73 | |
64 | |
52 | |
51 |
User | Count |
---|---|
208 | |
91 | |
62 | |
59 | |
56 |