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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Use table array to filter column

Hi

 

My data was flattened out of structure when I imported into Power BI, I want to create a query that filters out the unneeded data.

 

I have a column of data which in the live formats like this:

1.

   1.1

       1.2

but in BI formats like this:

1.

1.1

1.2

meaning that I cannot filter by 1. becuse I loose all the data in 1.1 and 1.2

I have created a table array in Excel that includes all the sub numbers and what categories they refer to. 

 

I think what needs to happen is something like this that covers all my data: 

FILTER(
('MainTable'[category column]),
'ArrayTable' IN { "NUMBER LIST" }

 

2 REPLIES 2
jennratten
Super User
Super User

Hello - this is how you can filter a table by a list of values in Power Query...

Table.SelectRows(#"Prior Step", each List.Contains(myListName, [MyColumnName]))

 

Anonymous
Not applicable

Hi,
Still new to some of the terminology, so just a little check for me to make sure I am doing this correctly.

"Prior step" refers to what?
myListName = the list I am using to search for values

myColumnName = the column the values I am search for are in

which gives me this so far: 

Table.SelectRows(#"Prior Step", each List.Contains(IDList, [data.categoryid]))

 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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