Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Expression that yield variant data type error cannot be used to defined calculated columns

Hi,   * Im new to power bi and moving from tableau backgroud. I have a calculation, desribing that in words(nested if)   if date_col is not null then       if(date_col) < today then display tod...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Anonymous

     

    You can use this MEASURE

    Please see attached file

     

    Measure =
    VAR result =
        MIN ( 'handle blanks'[Estimated Delivery Date] )
    RETURN
        IF ( ISBLANK ( result ), "Data Unavailable", FORMAT ( result, "Short date" ) )