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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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