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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Good morning, still a novice with PowerBI but loving it - need some guidance
Solved! Go to Solution.
Hi @MoiraBannister ,
To create a custom column in power query. We can use the formula as below.
if [type] = "laptop" and [age] = 5 then "fully depreciated" else if [type]="desktop" and [age]=6 then "fully depreciated" else "else"
Regards,
Frank
Hi @MoiraBannister ,
One sample for your reference. Here I create a calculated column as below.
Column =
IF (
AND ( Table1[type] = "laptop", Table1[age] = 5 ),
"fully depreciated",
IF (
AND ( Table1[type] = "desktop", Table1[age] = 6 ),
"fully depreciated",
"else"
)
)
Pbix as attached.
Regards.
Frank
Thanks so much, I am very grateful for the assistance - this is the erro I get
Hi @MoiraBannister ,
To create a custom column in power query. We can use the formula as below.
if [type] = "laptop" and [age] = 5 then "fully depreciated" else if [type]="desktop" and [age]=6 then "fully depreciated" else "else"
Regards,
Frank
Thank you so much, greatly appreciated
You can simply use the option to add a conditional column in the 'add column' tab (query editor). While using this option you can add lines per condition.
Power BI will write the coding for you using this option.
Hope this is helpfull!
Regards
Hi MoiraBannister,
This is possible to have 2 arguments in a conditional statement.
For an Example,
Column = IF(AND(PBI_Data_2[Region1]= "East", PBI_Data_2[Representative1] = "Parent"),"Fully Depriciated",
IF(PBI_Data_2[Region1] = "East" && PBI_Data_2[Item1] = "Pen","Fully Depriciated","Not Depriciated"))
You can && operator for both the conditions or use AND before and delimited by , in between both the conditions.
I think, this would be helpful for you.
Regards,
Pradeep
Thank you so much
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 60 | |
| 45 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 110 | |
| 103 | |
| 40 | |
| 29 | |
| 29 |