Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |