March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |