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
sabeensp
Helper IV
Helper IV

Max of each group

Hello,

I'm trying to get a max of each group

2020-02-14_21-23-31.png

Thanks

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @sabeensp 

 

Based on my research, you may create a measure as follows.

 

SalesMeasure = 
CALCULATE(
    MAX('Table'[Sales]),
    FILTER(
        ALLSELECTED('Table'[ID]),
        'Table'[ID] = MAX('Table'[ID])
    )
)

 

 

Finally you can display the result with a table visual.

b2.png

 

Best Regards

Allan

 

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

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @sabeensp 

 

If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.

 

Best Regards

Allan

v-alq-msft
Community Support
Community Support

Hi, @sabeensp 

 

Based on my research, you may create a measure as follows.

 

SalesMeasure = 
CALCULATE(
    MAX('Table'[Sales]),
    FILTER(
        ALLSELECTED('Table'[ID]),
        'Table'[ID] = MAX('Table'[ID])
    )
)

 

 

Finally you can display the result with a table visual.

b2.png

 

Best Regards

Allan

 

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

amitchandak
Super User
Super User

Create a measure or use max after putting to visualization table or matrix, Right-click on the field name in the visual pane and change

 

Max sales = max(table[sales])

Use it with id

 

In case you want like subtotal

Max Sales = calculate(max(Table[sales]),allexcept(Table[ID]))

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.