Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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 Diem | 5 |
Contract | 1 |
Contract | 5 |
Contract | 4 |
Contract | 7 |
Per Diem | 1 |
Per Diem | 2 |
Per Diem | 3 |
Per Diem | 4 |
Contract | 1 |
Contract | 1 |
Permanent | 30 |
Expected Output:
ContractType Days New Type
Per Diem | 5 | Per Diem |
Contract | 1 | Per Diem |
Contract | 5 | Contract |
Contract | 4 | Contract |
Contract | 7 | Contract |
Per Diem | 1 | Per Diem |
Per Diem | 2 | Per Diem |
Per Diem | 3 | Per Diem |
Per Diem | 4 | Per Diem |
Contract | 1 | Per Diem |
Contract | 1 | Per Diem |
Permanent | 30 | Permanent |
Solved! Go to Solution.
Hi @manish_tripathi,
You can use:
New Type = IF('Table'[Contract Type]="Contract" && 'Table'[Days]=1, "Per Diem", 'Table'[Contract Type])
Works for you? Mark this post as a solution if it does!
Check out this post of mine: Forecast Period - Previous Forecasts
Spare some time to read: How to Export Telemetry Data from Azure IoT Central into Power BI
Hi @manish_tripathi,
You can use:
New Type = IF('Table'[Contract Type]="Contract" && 'Table'[Days]=1, "Per Diem", 'Table'[Contract Type])
Works for you? Mark this post as a solution if it does!
Check out this post of mine: Forecast Period - Previous Forecasts
Spare some time to read: How to Export Telemetry Data from Azure IoT Central into Power BI
Thank you
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.