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 10

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.

View solution in original post

2 REPLIES 2
shailendra74
Level 10

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.

View solution in original post

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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,370)