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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.