Forum Discussion

Tony2021's avatar
Tony2021
Iron Contributor
Feb 06, 2022
Solved

Dax Measure - If Null add text

  Hello, I have a power pivot as shown below with a dax measure.   I want to display text when the date (Settled Date) is blank. How can I do this?   thank you  
  • SergeiBaklan's avatar
    SergeiBaklan
    Feb 06, 2022

    Tony2021 

    I see, so Settled Date is the column in Table2, not measure.  I have no idea which aggregation you'd like to show for this field in PivotTable, let assume min of Settled Date:

    min Settled:=MINX( Table1, Table1[Settled Date] )

    In addition, when above is blank we would like to show some text. That could be

    Date Settled:=IF( ISBLANK([min Settled]), "Not Settled", [min Settled] )

    Of course, both could be combined in one measure, depends on goals.

Resources