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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
xiuqinglim20
New Member

null formula not working?

Hi there,

 

I am trying to add a conditional column where if the column value is blank, it will return me a "Y" value while if it is not blank, it will return me a "N".

I believe the formula I am using was working for me before but it is no longer working for me now.

Anyone experiencing the same issue? Or anyone able to spot what I did wrong?

 

xiuqinglim20_0-1695954964685.png

1 ACCEPTED SOLUTION

@xiuqinglim20 "blank" is not null. You have "" over there. So working expression is if [Column1] = "" then "Y" else "N".

View solution in original post

3 REPLIES 3
xiuqinglim20
New Member

Hi @AlienSx,

 

Thank you for responding! I have tried your suggestion but it does not seem to work for me 😞

I believe Column1 is indeed blank. What I did in PQ editor was to Enter Data and then I left Column1 blank

 

I have screen recorded the steps I did in below video:

https://www.kapwing.com/videos/65166dcdc425188eeffe3583 

@xiuqinglim20 "blank" is not null. You have "" over there. So working expression is if [Column1] = "" then "Y" else "N".

AlienSx
Super User
Super User

Hi, @xiuqinglim20 apparently [Column1] <> null otherwise you would see null in PQ editor in Column1. Something is in there - maybe space (" "). Try this formula: 

each if List.Contains({null, " "}, [Column1]) then "Y" else "N"

Just find out what is in Column1.

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.