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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All, I have a question about an nested if statement and I couldn't find an answer anywhere.
I have the following two columns
| Column1 | Column2 |
| 2 | 22 |
| blank | 9 |
| 4 | 11 |
| blank | blank |
| 6 | 34 |
| 1 | blank |
| 24 | 55 |
| blank | 124 |
I would like to create a new column using DAX as follows : IF column 1 is blank take the value from column 2 if column 2 is blank then take the value from column 1 and if both columns are blank leave it as blank.
Been trying to find a solution for a few hours now and can't figure it out.
Any help much appreciated.
Solved! Go to Solution.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 17 | |
| 11 | |
| 10 |