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.
I would like to Find the way to populate a column manded on the String I search for
Example
ALL MEN |
ALL WOMEN |
ALL KID |
ALL BOY |
SEARCH value is MEN ,KID,WOMEN BOY
DESIRED RESULT
ALL MEN | MEN |
ALL WOMEN | WOMEN |
ALL KID | KID |
ALL BOY | BOY |
Solved! Go to Solution.
Try this:
Column = SWITCH(TRUE(), CONTAINSSTRING([Column1],"WOMEN"),"WOMEN", CONTAINSSTRING([Column1],"MEN"),"MEN", CONTAINSSTRING([Column1],"KID"),"KID", CONTAINSSTRING([Column1],"BOY"),"BOY", BLANK() )
@Anonymous ,
You can also create a calculate column using DAX below:
Result = RIGHT(Table1[Data], LEN(Table1[Data]) - SEARCH(" ", Table1[Data]))
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
You can also create a calculate column using DAX below:
Result = RIGHT(Table1[Data], LEN(Table1[Data]) - SEARCH(" ", Table1[Data]))
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try this:
Column = SWITCH(TRUE(), CONTAINSSTRING([Column1],"WOMEN"),"WOMEN", CONTAINSSTRING([Column1],"MEN"),"MEN", CONTAINSSTRING([Column1],"KID"),"KID", CONTAINSSTRING([Column1],"BOY"),"BOY", BLANK() )
Thanks a lot, Greg this really helped
User | Count |
---|---|
71 | |
63 | |
60 | |
49 | |
26 |
User | Count |
---|---|
117 | |
75 | |
62 | |
55 | |
43 |