Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am looking to recreate an if statement from Excel in Power BI. But it is more than a simple If statement where I could just use a conditional column in BI. Maybe I am over-complicating it but I wanted to see if someone could point me in the right direction.
Solved! Go to Solution.
Hi @ianneg77,
If I understand you correctly, you should be able to use the formula below to create a new calculate column in your table to get the same result in Power BI. ![]()
Column =
IF (
'Table1'[Request Date] - 'Table1'[Order Date]
> 2,
'Table1'[Ship Date] - 'Table1'[Request Date],
'Table1'[Ship Date]
- ( 'Table1'[Order Date] = 2 )
)
Note: You'll need to replace 'Table1' with your real table name.
Regards
Hi @ianneg77,
If I understand you correctly, you should be able to use the formula below to create a new calculate column in your table to get the same result in Power BI. ![]()
Column =
IF (
'Table1'[Request Date] - 'Table1'[Order Date]
> 2,
'Table1'[Ship Date] - 'Table1'[Request Date],
'Table1'[Ship Date]
- ( 'Table1'[Order Date] = 2 )
)
Note: You'll need to replace 'Table1' with your real table name.
Regards
Excellent, that works! I was messing up the syntax when attempting. Thank you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |