cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
smudhe_2807
Frequent Visitor

I want to pull id's from list with a count of 100 one time and there are 40000 id's in list

Hi i need a help pulling data with a count of 100 id's from the list of 40000 id's can anyone any query. what chages i have to do in this query .

generatedList = List.Generate(
                    ()=>[i = 0, res = fnGetData(#"TriageItems List"{i})],
                    each [i] < List.Count(#"TriageItems List"),
                    each [i = [i] + 1, res = fnGetData(#"TriageItems List"{i})],
                    each [res]
                  ),
2 REPLIES 2
BA_Pete
Super User
Super User

Hi @smudhe_2807 ,

 

What are you trying to achieve here? Are you just trying to pull a 100-value sample set?

 

If so, you could do something along these lines:

First, add an [Index] column into your table starting from 1.

Then add this as a filter:

Table.SelectRows(previousStep, each Number.Mod([Index], Table.RowCount(yourTable) / 100) = 0)

 

Pete

i have list of 40000 id's and i have to pull that list in my table but i have to pull that with some iteration one iteration contains [i]=100 id and next iteration [i]=i+100

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors