The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hey Hi,
I am looking for a function to search a particular word from a given column.
Currently, I am Using
Column_name = SWITCH(
Products | Output | |
Mino sai | Sai | (Which is fine) |
sai Kumar | Sai | (Which is fine) |
isa | Sai | (There is no Sai in the text but it has all the words separately) |
@Sai_Kumar , try like
Column_name = SWITCH(
True(), SEARCH("Sai", PowerBI_Fact[Product],,0)>0, "Sai",
PowerBI_Fact[Product]
)
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |