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
Ramees_123
Helper IV
Helper IV

Get Top 5 Records in Power BI Table View Including Other Values

I created the below Power BI table and used Top N filter in the filters pane to get top 5 current exposure amount based on the group name.

 

However I got around 7-10 rows as result since one Group Name contains more than one ORR and Industry value. How to rectify this ?

 

I need the Top 5 values comparing the Current Exposure amount value grouped with Group Name, ORR and Industry.

 

Screenshot 2021-04-15 182746.jpg

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ramees_123 , Use this for all the measure in the visual table

 

Measure =
var _grp = TOPN(10,all(Table[group Name]),[exposure amount],DESC)
return
calculate([exposure amount], filter(Table, Table[group Name] in _grp))

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Ramees_123 , Use this for all the measure in the visual table

 

Measure =
var _grp = TOPN(10,all(Table[group Name]),[exposure amount],DESC)
return
calculate([exposure amount], filter(Table, Table[group Name] in _grp))

@amitchandak  Your formula is only allowing exposure amount as a measure. However my exposure amount is a column and not a measure. 

@Ramees_123 , Create a measure on column [exposure amount] and use

 

amount = sum([exposure amount])

 

use amount

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.