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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I'm getting this error, what am i missing.
summary
i want to create a colum that looks at 1 column for text.contains "XXXXX" and the start of another column doesn't start with text "YYYYY_______" then return a result
Solved! Go to Solution.
Table.AddColumn(
your_table,
"LHRR",
each
if Text.Contains([a], "xxxx") and
not Text.StartsWith([b], "yyyy")
then "LHRR"
else "notLHRR"
)
ledgend. thanks so much
Table.AddColumn(
your_table,
"LHRR",
each
if Text.Contains([a], "xxxx") and
not Text.StartsWith([b], "yyyy")
then "LHRR"
else "notLHRR"
)
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 8 | |
| 8 | |
| 7 |