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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
LukeReds
Helper II
Helper II

How to extract elemens from a list using List.Alternate

Hi to everyone,

i have this list, numbers from 1 to 12 {1..12}, 

for extracting 1,4,7,10 i use = List.Alternate(Source,2,1,1) 

for extracting 3,6,9,12 i use = List.Alternate(Source,2,1,0)

 

How can i extract 2,5,8,11?

 

Thank you!

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

= pls try this code

= List.Alternate(List.Range({1..12},1),2,1,1)

 

View solution in original post

6 REPLIES 6
LukeReds
Helper II
Helper II

ts correct i was searching a way for using onlyList.Alternate, but its not possible

Ahmedx
Super User
Super User

= pls try this code

= List.Alternate(List.Range({1..12},1),2,1,1)

 

thank you!

LukeReds
Helper II
Helper II

hi @dufoq3  thank you for your answer, i tried it but i got 1,2,5,8,11

Have i to add a step that exclude the first number? I need only 2,5,8,11

 

I'm not sure what are you talking about. There is also screenshot with correct result...


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

dufoq3
Super User
Super User

Hi @LukeReds 

List.Skip(List.Alternate({1..12}, 2,1,2))

 

dufoq3_0-1721402876995.png

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors