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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
nr63bi
Helper I
Helper I

Filter a table by the minumum value of a column in DAX

Hello,

In DAX, I'd like to select a table filtered by the minimum value of a column. Here's how the table is determined

 

A B C 

1 0 Red

2 0 Red

2 1 Blue

2 2 Blue

3 1 Blue

3 2 Red 

 

A is the table identifier, B is the column from which I want to filter by the minimum, and C is an auxiliary column that I want to keep as is.

 

As a result, I would like to

 

A B C

1 0 Red

2 0 Red

3 1 Blue

 

I'm trying SUMMARIZE and LEFTJOIN but I'm not getting the results I want. What can I do?

 

Thanks in advance for your help 

 

1 REPLY 1
Ankita21
Frequent Visitor

Hi @nr63bi ,
Try creating a table using the below DAX

Table = SUMMARIZE(Table4, Table4[A], "B", MIN(Table4[B]), "C", CALCULATE(MAX(Table4[C]), Table4[B] = MIN(Table4[B])))

 

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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