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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all.
I'm trying to make new custom column based on values in u_regulatoryflag column. It contains IDs whihc I'm makin human readable text out of these. Here is a Sample code:
dv_u_regulatory_flag = Table.AddColumn(#"Filtered values", "dv_u_regulatory_flag",
each if Text.Contains([u_regulatoryflag], "29744385db18cc508a363a0f9d961950") then "Value1"
else if Text.Contains([u_regulatoryflag], "5384c385db18cc508a363a0f9d96198f") then "Value2"
else if Text.Contains([u_regulatoryflag], "29744385db18cc508a363a0f9d961950") and Text.Contains([u_regulatoryflag], "5384c385db18cc508a363a0f9d96198f") then "Value1, Value2"
else null)
in
dv_u_regulatory_flagFirst two conditions always work. The third one with "and" doesn' work. However if I comment the first two conditions the third one starts working.
Can someone please explain this behaviour and help me to put together the query?
Thank you.
Solved! Go to Solution.
I think you need to check the more complex condition first
I think you need to check the more complex condition first
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 110 | |
| 50 | |
| 32 | |
| 29 |