Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

IF ELSE

do you guys have an idea how to get this formula in Power BI?   if [SHIP_DATE]>TODAY()-1 then 'Current' ELSE 'Overdue' end
  • Anonymous's avatar
    Anonymous
    4 years ago

    HI Anonymous 

     

    If you are looking to create a measure , here is the formula:

     

    Date_fltr_measure = IF(max(Max_Grp1[Date])>TODAY()-1,"Current","Ovedue")

     

     

    If you are looking to create calculated column, here is the formula:

     

    Date_fltr_column = IF(Max_Grp1[Date]>TODAY()-1,"Current","Ovedue")

    Thanks

    Raj