Forum Discussion

Amzad's avatar
Amzad
Frequent Visitor
8 years ago
Solved

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 

5 Replies

  • Phil_Seamark's avatar
    Phil_Seamark
    Microsoft Employee

    Hi Amzad

     

    You could try

     

    IF (ISBLANK( [Site] ) || [Site] = "" , "UNK" , [Site] )
    • Amzad's avatar
      Amzad
      Frequent Visitor

      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)