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!View all the Fabric Data Days sessions on demand. View schedule
Hi,
I'm creating a list of all Columns in my query. I would like to filter this list to only show Columns that contain a particular character in the Column Header name.
I've able to get a list of all Columns using the following:
= Table.ColumnNames(#"Trim Text and Join to Last Split Step")
I want to filter my list to only show fields that contain ".". In the following step, I'm able to filter the list to only show fields with an extact match:
= List.Select(Table.ColumnNames(#"Trim Text and Join to Last Split Step"), each _ = "Campaign.Campaign")
But I want to be able to use Contains somewhere here to I can return more fields.
Any ideas on how I can achieve this in one step?
Thanks,
Mark
Solved! Go to Solution.
Hi @Anonymous
You can use this
= List.Select(Table.ColumnNames(#"previous step name"), each Text.Contains(_, "."))
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @Anonymous
You can use this
= List.Select(Table.ColumnNames(#"previous step name"), each Text.Contains(_, "."))
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 9 | |
| 6 | |
| 5 | |
| 3 |