Forum Discussion

SelflearningBi's avatar
SelflearningBi
Helper III
3 years ago
Solved

if statement

Model NameOD DATEOD1 OD2 DATEOD2OD3 DATEOD3
A1/3/2021YES4/4/2021YES -
B1/1/2021YES1/6/2022NO1/3/2021YES
C1/3/2021YES4/4/2021YES2/10/2022YES
D1/5/2021- -1/1/2021NO


I have created calcuated columns of OD1 OD2 OD3 

I would like to show both in measure and column ways:
if we have the OD Dates and these ODs are Yes then "OK" othervise "Drop" the entire model  

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    SelflearningBi So maybe a Complex Selector like: 

    Selector Measure =
      IF(
        [OD DATE] <> BLANK && [OD1] = "YES" && [OD2 DATE] <> BLANK() && [OD2] = "YES" && [OD3 DATE] <> BLANK() && {OD3] = "YES",
        1,
        0
      )