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
ChaCha123
Frequent Visitor

Return the number of rows by select the largest value from a column

Hi Guys,

I would like to have the return which the largest number of column g by group of a,b,c and date

Table Name: Fruit

ChaCha123_0-1697169717837.png

My expected result

 

ChaCha123_1-1697169843901.png

 

I using this DAX but this is not return on what the expected result

CM = 
SUMX(SUMMARIZE(Fruit,Fruit[date],Fruit[a],Fruit[b],Fruit[c],"CMs",1),[Cms])

 

ChaCha123_2-1697169937663.png

 

Apperciate your reply.

3 REPLIES 3
Anonymous
Not applicable

Hi @ChaCha123 ,

I'm a little confused about your needs, Could you please explain them further?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

rubayatyasmin
Super User
Super User

Hi, @ChaCha123 

 

Simply use CM = MAX(Fruit[g])

 

this will return the large number for the row. Then visualize it in a table. 

 

And for second row in your expected result CM should be 2. rught? As, third row in your table has g col value 2. 

 

rubayatyasmin_0-1697184374183.png

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Hi,

 

the second row is 1 , even the a, b, c, date and e is same but different f and g

ChaCha123_0-1697425118804.png

 

 

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.