Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

MAXX in M Function

Hi folks,

I`m trying to ADD a TRUE of FALSE column based on two columns with PowerQuery Functions: 1.PNG

 

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!!!

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

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:

 

highestID.PNG

 

then you replace the null values with FALSE

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

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:

 

highestID.PNG

 

then you replace the null values with FALSE

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.