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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Create conditional column based on null values

A newbie is having problems with creating a new column - I just right click on my table (not in Power Query) and create new column and want a simple condition column:

 

Is Customer = IF(Orders[customerNumberShop] = null , 1, 0)
 
Which gives me an error, do I need another way to make it? I am trying to avoid Power Query because it is a large data set to refresh
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

try this

Is Customer = IF(Orders[customerNumberShop] = "" , 1, 0)
or
Is Customer = IF(Orders[customerNumberShop] = BLANK() , 1, 0)

or

Is Customer = IF(ISBLANK(Orders[customerNumberShop]), 1, 0)

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

try this

Is Customer = IF(Orders[customerNumberShop] = "" , 1, 0)
or
Is Customer = IF(Orders[customerNumberShop] = BLANK() , 1, 0)

or

Is Customer = IF(ISBLANK(Orders[customerNumberShop]), 1, 0)

Fowmy
Super User
Super User

@Anonymous 

Is Customer = IF( isblank(Orders[customerNumberShop] ), 10)

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.