Forum Discussion

Sorakell's avatar
Sorakell
Frequent Visitor
7 years ago
Solved

Problem creating a column filtering two other columns on same table

Hello community!   I have a custom column with dates and would like to make a copy of this same column but tweaking it a little. I want this new column to give me blank spaces when the conditions i...
  • MFelix's avatar
    7 years ago

    Hi  Sorakell,

     

    Looking at your data I think it's easier to do it by if has a No or end date is blank return blank.

     

    See below the code for DAX and also for M language  (query editor).

     

     

    Query Editor (M Language)
    
    if ([Finalizado] = "No" or [first end date] = null) then null else [end date]
    
    ================ DAX Expected end date DAX = IF ( Table1[Finalizado] = "NO" || Table1[first end date] = BLANK (); BLANK (); Table1[end date] )

    Regards,

    MFelix