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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Aniket_Bhande
Frequent Visitor

I need this result

customer    product    quntity

c1                P1                20 

c1                P2                  30

c2                P3                 290

c2                 P4             110 

c2                P5                  60

         

 

 

RESULT I WANT

 

 

customer   product    quntity

c1             p2             30  

c2             p3            290

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Aniket_Bhande ,

 

Here are the steps you can follow:

1. Create measure.

Flag =
var _max=
MAXX(FILTER(ALL('Table'),[customer]=MAX('Table'[customer])),[quntity])
return
IF(
    MAX('Table'[quntity]) =_max,1,0)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_0-1669965631701.png

3. Result:

vyangliumsft_1-1669965631704.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi  @Aniket_Bhande ,

 

Here are the steps you can follow:

1. Create measure.

Flag =
var _max=
MAXX(FILTER(ALL('Table'),[customer]=MAX('Table'[customer])),[quntity])
return
IF(
    MAX('Table'[quntity]) =_max,1,0)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_0-1669965631701.png

3. Result:

vyangliumsft_1-1669965631704.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

AilleryO
Memorable Member
Memorable Member

Hi,

 

This should do the trick :

SUMMARIZECOLUMNS( Data[Customer] , "Max Qty" , MAX( Data[Qty] ), "Prod" , MAX( Data[Product] ) )
Use it in a function, or as a new table.
Let us know if it works 

its not work

Hi,

 

It does work if you use it as a new table, not as a new measure or column.

Otherwise you can try the solution of @Anonymous .

Let us know what is best solution for you

SEE ThisSEE This

Hi,

 

Not 100% sure about your need, but replace MAX by MIN and you should have expected result :

SUMMARIZECOLUMNS( Data[Customer] , "Max Qty" , MAX( Data[Qty] ), "Prod" , MIN( Data[Product] ) )

Let us know 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.