Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I need to create a new column called "Job Group" based on the "EE List.Job" list.
If the cell contain HSS, RN, Clinician from the EE List.Job, then the new column of the corresponding row shows "HSS", "RN", "Clinician".
Thanks in advance!
Solved! Go to Solution.
Hi @Sandie_Fong Try below code in power query advance option:
= Table.AddColumn(#"PreviousStepName", "Job Group", each if Text.Contains([EE List.Job], "HSS") then "HSS" else if Text.Contains([EE List.Job], "RN") then "RN" else if Text.Contains([EE List.Job], "Clinician") then "Clinician" else null)
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
You c an use
if Text.ContainsAny([EE List.Job], {"casee 1","casee 2","casee 3","casee 4"}) then ................. else ...........
Table.AddColumn(Source, "Job Group", each List.Intersect({Text.Split([EE List.Job], " "), {"HSS", "RN", "Clinician"}}){0}?)
Hi @Sandie_Fong Try below code in power query advance option:
= Table.AddColumn(#"PreviousStepName", "Job Group", each if Text.Contains([EE List.Job], "HSS") then "HSS" else if Text.Contains([EE List.Job], "RN") then "RN" else if Text.Contains([EE List.Job], "Clinician") then "Clinician" else null)
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
Thank you! I was trying to write this myself but have error with expression. Yours worked.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
6 | |
5 | |
5 | |
5 |
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |