Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
User | Count |
---|---|
84 | |
79 | |
71 | |
48 | |
43 |
User | Count |
---|---|
111 | |
54 | |
50 | |
40 | |
40 |