Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
i have a following table.
column1 Column2
2 0
5
6 0
12
if column2 having null value copy the column1 value. if column2 having 0 value return 0
expected output
0
5
0
12
Solved! Go to Solution.
In power query, goto add column, custom column and write a formula (Case sensitive)
= if [column2] = null then [column1] else [column2]
@Anonymous,
Another method is to create a calcualted column using DAX below.
Column = IF(ISBLANK(YourTable[Column2]),YourTable[column1],YourTable[Column2])
Regards,
Lydia
@Anonymous,
Another method is to create a calcualted column using DAX below.
Column = IF(ISBLANK(YourTable[Column2]),YourTable[column1],YourTable[Column2])
Regards,
Lydia
In power query, goto add column, custom column and write a formula (Case sensitive)
= if [column2] = null then [column1] else [column2]
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 39 | |
| 29 | |
| 24 |