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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Malarvizhi_P_R
Regular Visitor

Is there any possible way to limit the no.of of rows dynamically in Power BI desktop - Table Visual

I need to limit my table view by 20k or 30k rows of data as default view in Power BI report level table view. When there is no slicer filter applied on the table but when the slicer filter are applied the table should display that particular filter combination data with 20k -30K. Is it possible?. Please let me know the inputs on this or some alternative solution.

2 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@Malarvizhi_P_R ,You can try using RANKX and ISFILTERED

 

First create a RANK column, a calculated column

 

Rank = RANKX(ALL('YourTable'), 'YourTable'[YourSortingColumn], , ASC, DENSE)

 

Then create a measure for filter 

 

FilterMeasure =
   IF(
       ISFILTERED('YourTable'[YourSlicerColumn]),
       1,
       IF(
           'YourTable'[Rank] <= 20000, 1, 0
       )
   )

 

Use the FilterMeasure in the visual-level filters pane of your table visual. Set the filter to show only rows where FilterMeasure equals 1.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

Anonymous
Not applicable

Hi @Malarvizhi_P_R 

 

You can create an index column in power query:

You can find Index Column in Add column pane.

vzhengdxumsft_0-1721889055524.png

So that you can use the workaround from @bhanu_gautam.

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
bhanu_gautam
Super User
Super User

@Malarvizhi_P_R ,You can try using RANKX and ISFILTERED

 

First create a RANK column, a calculated column

 

Rank = RANKX(ALL('YourTable'), 'YourTable'[YourSortingColumn], , ASC, DENSE)

 

Then create a measure for filter 

 

FilterMeasure =
   IF(
       ISFILTERED('YourTable'[YourSlicerColumn]),
       1,
       IF(
           'YourTable'[Rank] <= 20000, 1, 0
       )
   )

 

Use the FilterMeasure in the visual-level filters pane of your table visual. Set the filter to show only rows where FilterMeasure equals 1.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






I don't have any unique key in fact table. Even after creating composite key. fact table rows don't have unique key. The table visual has columns from dimensions table there no specific column for me apply the filter on top of this I need apply this condition to limit my table view by 20k or 30k rows of data as default view in Power BI report level table view. When there is no slicer filter applied on the table but when the slicer filter are applied the table should display that particular filter combination data with 20k -30K. Kindly let me know your the inputs on this or some alternative solution

Anonymous
Not applicable

Hi @Malarvizhi_P_R 

 

You can create an index column in power query:

You can find Index Column in Add column pane.

vzhengdxumsft_0-1721889055524.png

So that you can use the workaround from @bhanu_gautam.

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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