Forum Discussion

manish_tripathi's avatar
manish_tripathi
Frequent Visitor
3 years ago
Solved

Add a conditional Column with two conditions

Hi I am a power BI beginner, I want to create a new conditional column in table below so that contracttype "Contract" with days as 1 change to "Per Diem", while rest all remain the same?

 

Input:

ContractType Days

Per Diem5
Contract1
Contract5
Contract4
Contract7
Per Diem1
Per Diem2
Per Diem3
Per Diem4
Contract1
Contract1
Permanent30

 

Expected Output:

 

ContractType Days New Type

Per Diem5Per Diem
Contract1Per Diem
Contract5Contract
Contract4Contract
Contract7Contract
Per Diem1Per Diem
Per Diem2Per Diem
Per Diem3Per Diem
Per Diem4Per Diem
Contract1Per Diem
Contract1Per Diem
Permanent30Permanent

2 Replies