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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I want to add a custom column in my table within Power Query that will find the max date for each row and return it with a value of "latest date" else "older".
I have a column call testdate
any idea how to do this please?
Solved! Go to Solution.
@M_SBS_6 , I Think you want for column
a New column in power query
if [testdate] = List.Max(LastStepTableName[testdate]) then "latest date" else "older"
For List.Max, we need table name, so check what is table name last step example #"Changed Data Type"
Power Query - List.Max and List.MaxN : https://youtu.be/22a8fq2UeBw
@M_SBS_6 , I Think you want for column
a New column in power query
if [testdate] = List.Max(LastStepTableName[testdate]) then "latest date" else "older"
For List.Max, we need table name, so check what is table name last step example #"Changed Data Type"
Power Query - List.Max and List.MaxN : https://youtu.be/22a8fq2UeBw
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |