Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello Everyone,
I have three columns "worker type", "Work location" and "Vendor name" and need to create a conditional or a custom column(Resource Type) by taking all of this parameters
If "Worker type" is Employee then "resource type" is employee
else
If "worker type" equal to "Contingent Worker" then check "work country" like "India" or "Phillipness" then "offshore"
else check "vendor" name contains of "abcdef letters" then "onshore" else "Contractor".
Solved! Go to Solution.
@Anonymous Create calculated column in DAX
Resource type = SWITCH(
TRUE(),
'Table'[worker type] = "Employee","employee",
'Table'[worker type] = "Contigent worker" && 'Table'[Work location] in {"India","Phillipness"},"offshore",
'Table'[worker type] = "Contigent worker" && CONTAINSSTRING('Table'[Vendor name],"abcef"),"onshore","Contractor")
OR
You can create Custom column in power query asper below
Resource Type =
if[worker type] = "Employee" then "employee"
else if [worker type] = "Contigent worker" and [Work location] = "India" or [Work location] = "Phillipness" then "offshore"
else if [worker type] = "Contigent worker" and Text.Contains([Vendor name],"abcdef") then "onshore"
else "Contractor"
Thank you that helped a lot.
@Anonymous Create calculated column in DAX
Resource type = SWITCH(
TRUE(),
'Table'[worker type] = "Employee","employee",
'Table'[worker type] = "Contigent worker" && 'Table'[Work location] in {"India","Phillipness"},"offshore",
'Table'[worker type] = "Contigent worker" && CONTAINSSTRING('Table'[Vendor name],"abcef"),"onshore","Contractor")
OR
You can create Custom column in power query asper below
Resource Type =
if[worker type] = "Employee" then "employee"
else if [worker type] = "Contigent worker" and [Work location] = "India" or [Work location] = "Phillipness" then "offshore"
else if [worker type] = "Contigent worker" and Text.Contains([Vendor name],"abcdef") then "onshore"
else "Contractor"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
80 | |
47 | |
44 | |
35 |
User | Count |
---|---|
183 | |
84 | |
69 | |
48 | |
45 |