Forum Discussion

RemiAnthonise's avatar
8 years ago
Solved

DAX: IF 'inside' SWITCH

Hi guys,    I have this DAX:     Aantal dagen einde contract = SWITCH ( TRUE (); ISBLANK(TODAY()); 0; 'Vehicles'[Eind leasecontract] > TODAY(); DATEDIFF ( TODAY(); 'Vehicles'[Eind leasecontra...
  • v-jiascu-msft's avatar
    8 years ago

    Hi RemiAnthonise,

     

    If you want to replace the "01-01-1900" with blanks, you can try the following two methods.

    1. Change it in the data source. If there are some non-date values in the date column?

    2. Replace it in the Query Editor.

    Regarding to the DAX formula, 

    1. ISBLANK(TODAY()) is always false.

    Can you share a sample?

     

    Best Regards,

    Dale