cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Boynogs123
Level: Powered On

Filter on datatable or Datasource

Hi,

 

How can I filter the datatable, I want only show the 1 - 20 records of my datasource I already try this  CountRows('FinalDataSource') <= 20 but it shows nothing.

 

Thanks!

 

best regards

Boynogs

 

1234.PNG

123.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
shailendra74
Level 8

Re: Filter on datatable or Datasource

Hi @Boynogs123 

 

You need to use FirstN method:

 

FirstN(Sort(Filter(...)), 20)

 

 

FirstNTable , 20 )

 

you can refer to 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-first-last

 

Thanks.

2 REPLIES 2
shailendra74
Level 8

Re: Filter on datatable or Datasource

Hi @Boynogs123 

 

You need to use FirstN method:

 

FirstN(Sort(Filter(...)), 20)

 

 

FirstNTable , 20 )

 

you can refer to 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-first-last

 

Thanks.

Boynogs123
Level: Powered On

Re: Filter on datatable or Datasource

Hi @shailendra74 ,

 

Thank you Smiley Happy

 

Do know how to make it like pagination?

 

Thank you!

 

Best Regards,

Bernard

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 50 members 4,987 guests
Please welcome our newest community members: