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

【Seek Help】How to randomly pick 20% of the total number of records from "List Rows Present in a Table" action?

Dear Experts, 

 

We are trying to build a flow that can randomly pick 20% of the total records in the Excel file so that we can use them as sample to do the quality check.  I have created the "Compose" action which can randomly pick 1 record (Expression as below) from the "List Rows Present in a Table" action. 

 

body('List_rows_present_in_a_table')?['value'][rand(1,length(body('List_rows_present_in_a_table')?['value']))]

 

Is it possible that we can let the Flow randomly pick 20% of the total number of records?

 

Many thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: 【Seek Help】How to randomly pick 20% of the total number of records from "List Rows Present in a Table" action?

Hi @TomLu1231 ,

 

I have made a test on my side and as you mentioned we could only randomly pick 1 record in microsoft flow currently, there is no any way to randomly pick 20% records in microsoft flow currently.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

1 REPLY 1
Community Support Team
Community Support Team

Re: 【Seek Help】How to randomly pick 20% of the total number of records from "List Rows Present in a Table" action?

Hi @TomLu1231 ,

 

I have made a test on my side and as you mentioned we could only randomly pick 1 record in microsoft flow currently, there is no any way to randomly pick 20% records in microsoft flow currently.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,405)