Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
ovl
New Member

Conditional column - cannot convert the value null to type text

Hi,

 

I am trying to add a conditional column that shows "complete" when XYZ columns contain a value (0 included), and "not complete" when any of XYZ columns contains a blank cell (null).

 

I have added a conditional column as follows:

 

If [columnX] equals [null] then [not complete]

Else if [columnY] equals [null] then [not complete]

Else if [columnZ] equals [null] then [not complete]

Otherwise ["complete"]

 

The funny thing is that the conditional columns works as expected in the query editor but when I close&apply the query, it shows the error "cannot convert the value null to type text". How can I check if a cell that contains a number is blank if the value "null" is considered as a text type by the operator?

 

Any ideas will be greatly appreciated!

Thanks!

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @ovl,

 

Can you share the formula here please? Did this happen after you added the column?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Dale,

 

Thanks for quick reply!

 

Here is a screenshot of what I was trying to explain:Capture.PNG

 

As you can see below, when I click "ok", the column is added and works as expected (in the query editor). However, when I close and apply the query, it shows me the error "we cannot convert the value null to type text" and the column is not added.

 

Thanks for your help!

Oriol

ovl
New Member

Hi,

 

I am trying to add a conditional column that shows "complete" when XYZ columns contain a value (0 included), and "not complete" when any of XYZ columns contains a blank cell (null).


I have added a conditional column as follows:

 

If [columnX] equals [null] then [not complete]

Else if [columnY] equals [null] then [not complete]
Else if [columnZ] equals [null] then [not complete]

Otherwise ["complete"]

 

The funny thing is that the conditional columns works as expected in the query editor but when I close&apply the query, it shows the error "cannot convert the value null to type text". How can I check if a cell that contains a number is blank if the value "null" is considered as a text type by the operator?

 

Any ideas will be greatly appreciated!

Thanks!

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.