Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello
I would like to create a new colum in power BI. The excel formula used to generate this column was, New column =IF(AND(BE74="STORE";BF74="Customer";A74="SM2";AI74=0 );1;0).
What would its equivalent in power BI be? Thanks in advance!
Solved! Go to Solution.
Hi @Anonymous ,
Try the following column formula:
Column =
IF (
'Table'[AI] = BLANK (),
0,
IF (
'Table'[BE74] = "Store"
&& 'Table'[BF74] = "Customer"
&& 'Table'[A74] = "SM2",
1,
0
)
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try the following column formula:
Column =
IF (
'Table'[AI] = BLANK (),
0,
IF (
'Table'[BE74] = "Store"
&& 'Table'[BF74] = "Customer"
&& 'Table'[A74] = "SM2",
1,
0
)
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hii. Sorry for the late response. It worked. Thank you very much.
hi @Anonymous ,
Please try this:
Result= if(Tablename [BE]="Store" && Tablename[BF]="Customer" && Tablename[A]="Sm2" && Tablename [AI]=0, 1, 0)
Thank you for the response. I am sorry that I forgot to mention that the [AI] is a date column which contains "null" and dates. So I prefer to have [AI] = null in the formala I mentioned.
When I tried the formula you suggested it showed error due to this. In this case what would the updated formula be? Thanks!
@Anonymous Maybe:
Column = IF([BE]="STORE" && [BF]="Customer" && [A]="SM2" && [AI]=0,1,0)
Thank you for the response. I am sorry that I forgot to mention that the [AI] is a date column which contains "null" and dates. So I prefer to have [AI] = null in the formala I mentioned.
When I tried the formula you suggested it showed error due to this. In this case what would the updated formula be? Thanks!
Thank you for the response. I am sorry that I forgot to mention that the [AI] is a date column which contains "null" and dates. So I prefer to have [AI] = null in the formala I mentioned.
When I tried the formula you suggested it showed error due to this. In this case what would the updated formula be? Thanks!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 120 | |
| 38 | |
| 36 | |
| 29 |