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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ac_clynk
Frequent Visitor

Distinct and MAX as filters in query

Hi there.  My google fu is letting me down.

 

I'm accessing a web API and returning 100 records.

I only care to get distinct user; distinct(user), and the record with highes value for number; max(number)

For instance:

 

user        number     content

joe          2                blah

jim          1                blah

joe          3                blah

jon         12               blah

jim          6                blah

 

What I'd like to have returned is:

 

joe         3              blah

jim         6              blah

jon         12            blah

 

How am I to only return that? 

 

Much appreciated!

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi 

 

Just create a measure for your number column. Max of Number= MAX( Table1[Number Column]).

 

Then pull USer, Content and Max of Number measure into your visuals.

 

Thanks

Raj

View solution in original post

Hi Raj,

 

For some reason, this solution wasn't as clear until I read your answer to another request:

https://community.powerbi.com/t5/Desktop/Getting-the-Max-value-of-each-group/m-p/485735#M226201

 

Combining these two instructions worked for me.   I was trying to emulate the Teams status of members in the Harvest time tracking system.  Many thanks.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi 

 

Just create a measure for your number column. Max of Number= MAX( Table1[Number Column]).

 

Then pull USer, Content and Max of Number measure into your visuals.

 

Thanks

Raj

Hi Raj,

 

For some reason, this solution wasn't as clear until I read your answer to another request:

https://community.powerbi.com/t5/Desktop/Getting-the-Max-value-of-each-group/m-p/485735#M226201

 

Combining these two instructions worked for me.   I was trying to emulate the Teams status of members in the Harvest time tracking system.  Many thanks.

Anonymous
Not applicable

Hi @ac_clynk

 

Glad that my post helped you.

 

Thanks

Raj

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.