Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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]
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |