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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors