Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
In the screenshot below I have multiples of the same Genre and the counts for each artist in that Genre. How do I only keep the max value count for each artist/genre combo?
Solved! Go to Solution.
When you group by Genre and Artist name, select the Max aggregation in the Operation drop down
Regards
Phil
Proud to be a Super User!
In Power BI, go to the "Transform Data" option to open Power Query Editor.
Go to the "Home" tab and click on "Group By".
In the Group By window:
 
					
				
		
Hi @hobosapien ,
Thanks for @Kedar_Pande and @PhilipTreacy reply.
@hobosapien Here is another method for your reference if you want to add a column that calculates the maximum value of each category.
= Table.AddColumn(#"Last step", "MAX", (x)=>List.Max(Table.SelectRows(#"Last step", (y)=>y[Genre]=x[Genre] )[Count]) 
)The result of my test.
Best regards,
Mengmeng Li
 
					
				
		
Hi @hobosapien ,
Thanks for @Kedar_Pande and @PhilipTreacy reply.
@hobosapien Here is another method for your reference if you want to add a column that calculates the maximum value of each category.
= Table.AddColumn(#"Last step", "MAX", (x)=>List.Max(Table.SelectRows(#"Last step", (y)=>y[Genre]=x[Genre] )[Count]) 
)The result of my test.
Best regards,
Mengmeng Li
In Power BI, go to the "Transform Data" option to open Power Query Editor.
Go to the "Home" tab and click on "Group By".
In the Group By window:
When you group by Genre and Artist name, select the Max aggregation in the Operation drop down
Regards
Phil
Proud to be a Super User!
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 84 | |
| 49 | |
| 36 | |
| 31 | |
| 30 |