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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TamilselviK
Helper I
Helper I

How to loop through a list using Power Query

Hi,

 

I have list which contains 117 items , Now i want to loop through this list i expecting some thing like below.

 

List

TamilselviK_0-1628237409909.png

 

 

For each item in list

Insert into DB.

 

I can insert the first date but not all

 

Regards,

Tamilselvi K

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Add a custom column.  Specify the NativeQuery for the value.  Hit ok - Power Query will do the rest for you (apply each etc)

 

BEWARE:  There are lots of issues with query caching.  It is not guaranteed that all your inserts will land, or that you won't have duplicate inserts.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Add a custom column.  Specify the NativeQuery for the value.  Hit ok - Power Query will do the rest for you (apply each etc)

 

BEWARE:  There are lots of issues with query caching.  It is not guaranteed that all your inserts will land, or that you won't have duplicate inserts.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors