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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I have a dataset similar to the below.
UP Activity/Skill Type | Calculated Column |
_ | Day Work |
_ | Day Work |
Unit Rate | Unit Rate |
Non Billable | Unit Rate |
Non-Billable Zero | Unit Rate |
Overhead | Unit Rate |
I have a existing calculated column that searchs a column and if a "_" is found creates a row as "Day Work" and if not true "Unit Rate".
I want to extend the DAX to say the following
If "_" is found = "Day Work"
If "Unit Rate" is found = "Unit Rate"
If anything else is found = "Non Billable"
Any ideas on how I can achieve this?
Many thanks
Solved! Go to Solution.
Hi @Anonymous ,
Try this:-
Column = SWITCH(TRUE(),
CONTAINSSTRING('Table (2)'[UP Activity/Skill Type],"_"),"Day Work",
CONTAINSSTRING('Table (2)'[UP Activity/Skill Type],"Unit Rate"),"Unit Rate",
"Non Billable")
Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous ,
Try this:-
Column = SWITCH(TRUE(),
CONTAINSSTRING('Table (2)'[UP Activity/Skill Type],"_"),"Day Work",
CONTAINSSTRING('Table (2)'[UP Activity/Skill Type],"Unit Rate"),"Unit Rate",
"Non Billable")
Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin