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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
nitrox
Helper I
Helper I

Help with filtering first 10 records in table

Hi everyone,

 

I am trying to apply a filter on a table and I can't find the solution 😞

 

I have the following table and I need to filter the first 10 records taking into account the column "type".

 

nitrox_0-1615061305966.png

Based on the attached table, it should show me the first 10 "A" records. If there are few A's, it should show the B's, C's...etc....

 

Many thanks

5 REPLIES 5
PaulDBrown
Community Champion
Community Champion

@nitrox 

Let me kindly ask you to refrain from duplicating threads. It disperses answers and is not helpful for other people seeking to solve similar problems. 
As regards your question, you can add the measure to the visual in the filter pane and filter the values you need to display by using "is less than" and type in 11





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

You can use the Top N feature in filter pane and get the top 10 results as shown below:

gauravtanwar_0-1615061903995.png

 

Kindly mark this post as solution and give kudo if it helped

Hi @Anonymous. Yes. I have tried filtering the values using the filtering panel but it does not work. Attached is a screenshot of how I have configured it.

nitrox_0-1615062227105.png

 

Anonymous
Not applicable

This is happening because your column unidades has duplicate values. I suggest you to create an Id column and then apply the Top/Bottom N filter. It works for me as shown below:

gauravtanwar_0-1615064714304.png

 

Hi @Anonymous. 

 

In the end I was able to solve it by doing the following.

 

1. I defined the sorting in the table by the column type
2. I created a new column called index
3. Then I created an auto numeric measure based on the records shown in the table (in case there are filters).

RowNum = CALCULATE (COUNT( Hoja1[Índice] ), FILTER ( ALLSELECTED ( Hoja1 ), Hoja1[Índice] <= MAX ( Hoja1[Índice])))


4. With the new measure I have filtered to show me the first 10 records.

nitrox_0-1615120151499.png

 

With these changes, I have managed to filter the first 10 records taking into account the column type

 

The problem I have now is that if I do not add the "Index" column, the system does not apply correctly the sorting by rownum column.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors