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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

how to get the max and total per group in a single measure?

I aim to get the total and the max for each C% group but I am unable…

 

Given the below data, I would like to do  Total/MAX (per C% group), that is:

  • 50/50 for C1
  • 35/25 for C2
  • 35/20 for C3

 

ovonel_0-1623763349847.png

 

Is it possible to do it within a single measure?

2 REPLIES 2
Anonymous
Not applicable

Everything (well, almost) is possible. Can you please give us a sample of your data to work with? In text form so that it can be copied and pasted. Thanks.

amitchandak
Super User
Super User

@Anonymous , Try like

 

assume you habve three row column in matrix group1,group2, group3,, group4 and you have measure total

 

Try a measure like

 

divide([total], calculate(maxX(values(Table[group4]),[total]),filter(allselected(Table), table[group1] =max(table[group1]) && table[group2] =max(table[group2]) && table[group3] =max(table[group3]) )))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.