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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

IsBlank return with a specific value

Hello Experts,

 

I am trying to return null/blank fields with a specific variable. for example.

 

I have a calculated field with multiple "containstring" formula to group a specific category. 

CONTAINSSTRING(table name, "hospi"), "Hospitality"
 
I would like to return unknown category  with a variable called "Unknown" in same column. I tried isBlank function, But my calculated column name is not appearing under inBlank function
 
Would be great help if you could assist me with this.
 
thanks
 
if
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , not very clear. Try a new column like

Switch(true(),
isblank([column]) || [column] ="" ,"Unknown",
search("hospi",[column],,0) >0, "Hospitality",
"Other"
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak ,

 

I've created a new calculated column to group categories and give a unique name. I would like to return "Unknown" in my calculated column wherever there's blank. I am unsure about some categories which was listed in main column. Hence I would like to return them as "Unknown". Current calculated column;

 

SWITCH(TRUE(),
CONTAINSSTRING (col1,"hospi") || CONTAINSSTRING(col2,"A0172") , "Hosiptals")
 
I have several other categories which I've extracted/grouped them from other columns
 
Can I include isblank function within same calculated column? If so then how?

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.