This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I want to create a new column that will give me the value of columnA if theres a value but if there isnt get the value from columnB otherwise jut give me a null.
I already tried the following formula but i only get values from columnA:
= IF(ISBLANK([ColumnA]), [ColumnB], "null")
and = IF(ISBLANK(ColumnA), IF(ISBLANK(Column),"null",Column),ColumnA)
I also cleaned up the columns for any hidden characters.
Let me know if you have any thoughts to get this to work.
Thank you
IG
Solved! Go to Solution.
First, I would confirm that the columns contain true blank values.
One method: in Table view, click the filter dropdown:
Empty string (not blank)
Actual Blank:
You may need to replace empty string values with nulls in Power Query:
Null values in Power Query will appear as italicised null in the Power Query Editor.
Once you are sure you have blank values in the relevant columns, you could create this DAX calculated column:
= COALESCE ( YourTable[ColumnA], YourTable[ColumnB], "null" )
You could also add a custom column in Power Query with this expression (using the null-coalescing operator ?? )
= [ColumnA] ?? [ColumnB] ?? "null"
Does any of the above help?
Hi @igonzalez_ep ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @igonzalez_ep ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @igonzalez_ep ,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
First, I would confirm that the columns contain true blank values.
One method: in Table view, click the filter dropdown:
Empty string (not blank)
Actual Blank:
You may need to replace empty string values with nulls in Power Query:
Null values in Power Query will appear as italicised null in the Power Query Editor.
Once you are sure you have blank values in the relevant columns, you could create this DAX calculated column:
= COALESCE ( YourTable[ColumnA], YourTable[ColumnB], "null" )
You could also add a custom column in Power Query with this expression (using the null-coalescing operator ?? )
= [ColumnA] ?? [ColumnB] ?? "null"
Does any of the above help?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.