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 folks,
I`m trying to ADD a TRUE of FALSE column based on two columns with PowerQuery Functions:
It`s in DAX =IF('Projetos em Andamento'[Id]=MAXX(FILTER('Projetos em Andamento';'Projetos em Andamento'[Project Name (Jira)]=EARLIER('Projetos em Andamento'[Project Name (Jira)]));'Projetos em Andamento'[Id]);TRUE())
But i need it in M (PowerQuery).
Please help me!!!
Solved! Go to Solution.
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |