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
Amzad
Frequent Visitor

Converting to DAX

 I Have a  null and Blank  Fields in a  Sites Column  can any give me DAX function 

 

if it's in SQL i can achive  using   -->  isnull  (nullif  ([site],'') ,'UNK') as [Site] 

can any one give me a DAX function to it Please 

 

Thanks 

3 ACCEPTED SOLUTIONS
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Amzad

 

You could try

 

IF (ISBLANK( [Site] ) || [Site] = "" , "UNK" , [Site] )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Yggdrasill
Responsive Resident
Responsive Resident

Like @Phil_Seamark points out.

 

Create a calculated column in the table where [Site] column is and use his formula. You might need to use ";" instead of "," depending on your locale settings.

View solution in original post

5 REPLIES 5
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Amzad

 

You could try

 

IF (ISBLANK( [Site] ) || [Site] = "" , "UNK" , [Site] )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hey Phil, Thanks for reply   its not working 

as i'm new to Power BI side 

i have a table 'Business Attribute' with 'Site' Cloumn like 

NY

NJ

*

TX

Blank

MA

             I want to replace  Blank and *  as a Unknow (Like UNK)  

 

 

 

Yggdrasill
Responsive Resident
Responsive Resident

Like @Phil_Seamark points out.

 

Create a calculated column in the table where [Site] column is and use his formula. You might need to use ";" instead of "," depending on your locale settings.

Thanks  @Phil_Seamark   && @Yggdrasill    it works :smileyhappy :  Thanks Again

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors