Forum Discussion

Michele78256's avatar
Michele78256
Regular Visitor
3 years ago
Solved

How to replicate Excel formula in Power BI with multiple IF/AND criteria

I am trying to replicate this Excel formula in Power BI and am having trouble. The end result needs to be a whole number, which ultimately is the difference between two dates: =IF(AND(U2<>"", CL2<...
  • amitchandak's avatar
    3 years ago

    Michele78256 , try like, use column names in power bi

    =IF(([U]<>"" && [CL]<>""&& [C]="Retail"), ([CL]-[U])-[BZ], IF(([V]<>"" && [CL]<>""&& [C]="Correspondent"), [W]-[V], ""))

     

    if the values are blan, not "", then you can check isblank([Column name])

    or

    not(isblank([column Name]) )