Forum Discussion

JamesMurg's avatar
JamesMurg
Helper I
3 years ago
Solved

IF returns text

Good morning

 

Hoping you can help, I have the below formula in Excel but I need it converting to DAX if someone can help me 🙂

=IF(AND([@Shipper]="",[@[Shipper Company]]=""),"No Shipper Information",IF([@[Shipper Company]]="",[@Shipper],[@[Shipper Company]]))

  • if it calculated column 

     

    IF(
    AND('Table'[Shipper]="",'Table'[Shipper Company]=""),"No Shipper Information",
    IF('Table'[Shipper Company]="",'Table'[Shipper],'Table'[Shipper Company]))

     



1 Reply

  • eliasayyy's avatar
    eliasayyy
    Memorable Member

    if it calculated column 

     

    IF(
    AND('Table'[Shipper]="",'Table'[Shipper Company]=""),"No Shipper Information",
    IF('Table'[Shipper Company]="",'Table'[Shipper],'Table'[Shipper Company]))