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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Show Max value for each item in a gallery

Hi,

 

 I am trying to show the max weight recorded for each exercise in a gallery.

I can successfully filter by specific numbers, but would like to use the Max function instead.

My query is as follows:

Filter(SortByColumns(
WorkoutLogs,"cr503_weightkg",
SortOrder.Descending
),'Weight (kg)'=84)

 

thanks in advance

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Thanks for the above,

 

 Unfortunately I need this for a PowerApps Gallery, so Power fx please.

I'm unable to use a DAX measure.

 

tried converting it.

 

ClearCollect(
MaxWeightsByExercise,
ForAll(
Distinct(WorkoutLogs, 'cr503_exercise'),
LookUp(
WorkoutLogs,
'cr503_exercise' = Result,
'Weight (kg)' = Max(Filter(WorkoutLogs, 'cr503_exercise' = Result), 'Weight (kg)')
)
)
)

 

sorry if it doesn't help you.

 

rubayatyasmin_0-1689517080227.png 


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

Proud to be a Super User!


rubayatyasmin
Super User
Super User

Hi, @Syndicate_Admin 

 

see if this works. 

 

Max Weight =
CALCULATE (
MAX ( WorkoutLogs[Weight (kg)] ),
FILTER (
ALL ( WorkoutLogs[Exercise] ),
WorkoutLogs[Exercise] = MAX ( WorkoutLogs[Exercise] )
)
)

 

 

rubayatyasmin_0-1689517080227.png


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

Proud to be a Super User!


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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