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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ddpl
Solution Sage
Solution Sage

Filter nested table by nested list...???

I have 2 tables

d:

ddpl_1-1716291050090.png

 

up:

ddpl_2-1716291084071.png

 

in d Table

1) Split by comma and get list : Text.Split([d], ",")

2) Join whole 'up' Table at each row : each up

3) Filter up[up] column to each item inside list :

     let
     l = [d1]
     in
     Table.SelectRows([tab1], each (List.Contains(l, [up])))

 

but my M code filter only single/first item of list to column

ddpl_3-1716291528977.pngddpl_4-1716291541274.png

I want all the items of list to filter up[up] column whichever are present.

2 REPLIES 2
Vijay_A_Verma
Super User
Super User

Insert this step (modify Source appropriately)

= [a = List.Combine(List.Transform(d[d], each Text.Split(_, ", "))), 
b = Table.SelectRows(Source, each List.Contains(a, [up]))][b]

 

@Vijay_A_Verma 

I'm sorry but I can't comprehend your code, and It throws error when I applied it.

Can you please give me code more explicitly 🙏🏽

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.