Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Making empty row in a date column as pending

Thanks in advance for helping me with this challenge 

 here I'm trying to indentify empty row as pending. this the DAX code I wrote

Status = IF('Fact-Tasks'[Closed] = BLANK(), "Pending",'Fact-Tasks'[Closed]
but I get this error "Expressions that yield variant data-type cannot be used to define calculated columns"
  • Hi Anonymous 

    You may try

     

     

    Status =
    IF (
        'Fact-Tasks'[Closed] = BLANK (),
        "Pending",
        'Fact-Tasks'[Closed] & "" )
    )

     

     

2 Replies

  • tamerj1's avatar
    tamerj1
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 

    You may try

     

     

    Status =
    IF (
        'Fact-Tasks'[Closed] = BLANK (),
        "Pending",
        'Fact-Tasks'[Closed] & "" )
    )

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank You so much this exactly what I needed