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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
rber
Frequent Visitor

Power Query - Table.SelectRows never ending

Hi folks! I'm facing something weird. I'm trying select rows a table based on a column from another table.  I wrote that: Table.SelectRows(#"Colunas Renomeadas", each List.Contains(contas_fDados[Código],[Alternativa Conta]))

 

The function seems to work, but it never ends. I've already tried with another column and it didn't work.

 

Any idea?

 

Thanks in advance!

 

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @rber 

 

Try adding extra step before Table.SelectRows with List.Buffer
step1 = List.Buffer( contas_fDados[Código] ),

step2 = Table.SelectRows( #"Colunas Renomeadas", each List.Contins( step1, [Alternativa Conta] ) )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @rber 

 

Try adding extra step before Table.SelectRows with List.Buffer
step1 = List.Buffer( contas_fDados[Código] ),

step2 = Table.SelectRows( #"Colunas Renomeadas", each List.Contins( step1, [Alternativa Conta] ) )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

rber
Frequent Visitor

@Mariusz  Great! It worked, thanks a lot. However, I'm still wondering why my method didn't work 🤔

 

Regards,

Mariusz
Community Champion
Community Champion

Hi @rber 

 

Your method works it's just too heavy on the engine, adding list.buffer loads your list into memory so it's easier and faster to access, other than that your code remains the same.
https://docs.microsoft.com/en-us/powerquery-m/list-buffer

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.