Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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]
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.