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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kmshah
Frequent Visitor

Distinct Values and then Max Value related to each row

We have recieved data from one of our partners where they have given us information about how each of their loans has behaved over it's lifetime. 

 

We would like to generate a table from them which allows us to extract how many distinct loan ids are there as well as what their maximum loan balance ever was.


e.g. Source Table 

Loan IDLoan Balance
A100
A90
A80
A70
B150
B140
B130
B120
C180
C170

 

And to convert this into:

A100
B150
C180

 

Any suggestions on how we could do this?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kmshah , if you use in Min and Max as summarization in visual you should get it ?

Measures like

min Loan Balance = min(Table[Loan Balance])
max Loan Balance = max(Table[Loan Balance])

Or table like

new table = summarize(Table,table[Loan ID],"Min",min(Table[Loan Balance]),"Max",max(Table[Loan Balance]))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@kmshah , if you use in Min and Max as summarization in visual you should get it ?

Measures like

min Loan Balance = min(Table[Loan Balance])
max Loan Balance = max(Table[Loan Balance])

Or table like

new table = summarize(Table,table[Loan ID],"Min",min(Table[Loan Balance]),"Max",max(Table[Loan Balance]))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

The logic for the table worked perfectly! Thank you @amitchandak 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.