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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

IF Statement with blanks

I have a column that has blanks in that I want to say 'Other' when there is a blank. Is an IF statement the best way to do this? I don't want another column with the data in, only this one.

 

ipswich.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Probably best to do this in Power Query, Just use find and replace. or in DAX you can try a calculated column

Column = if( LEN('Table'[Column1])=0,"Other",'Table'[Column1])

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Probably best to do this in Power Query, Just use find and replace. or in DAX you can try a calculated column

Column = if( LEN('Table'[Column1])=0,"Other",'Table'[Column1])
Anonymous
Not applicable

I never knew about find and replace! Worked a treat, thanks 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.