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
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]))

 

 

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]))

 

 

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

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.