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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ovonel
Post Prodigy
Post Prodigy

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

@ovonel , 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]) )))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors