This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hello,
I'm a new user of PowerBI and I need your help to find a Power Query formula.
I have a column which contains a list of lines and I need to create a column which select a single line when it contains the expression "PRIO2". I'm probably not really understandable so I made a screen that explain what I want :
Can you help me to find the right Power Query formula to do that ?
Any help would be appreciated.
Hi!
You could use the following formulas as in this example.
You can copy this code into the advanced editor of a new blank query to run it:
let
Source = #table(
{
"Task",
"Status"
},
{
{
"Task1",{"status1 pending","status2 pending"} },
{
"Task2",{"status1 pending","text PRIO2","text PRIO2"}
}
}
),
extractOccurence = Table.AddColumn(Source, "extract", each List.FindText(_[Status], "PRIO2")),
checkOccurenceCount = Table.AddColumn(extractOccurence, "containsPRIO2", each if List.Count(_[extract]) >0 then true else false, type logical)
in
checkOccurenceCount
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |