Forum Discussion
MAXX in M Function
- 7 years ago
So you want a TRUE value for the highest ID per Project Name?
Duplicate the query.
Do a Group By-> using Project Name and MAX on the ID.
This will give you a table with the highest id for each project
project name id
Squad 7
Portal 9
......
Add a custom column "TRUE"
Merge this table with the original table using a Left Join (from the original)
This will get you:
then you replace the null values with FALSE
So you want a TRUE value for the highest ID per Project Name?
Duplicate the query.
Do a Group By-> using Project Name and MAX on the ID.
This will give you a table with the highest id for each project
project name id
Squad 7
Portal 9
......
Add a custom column "TRUE"
Merge this table with the original table using a Left Join (from the original)
This will get you:
then you replace the null values with FALSE