I have a formula that is using the OR command, but the results that I'm getting back are using it as if it is the AND command.
In the formula below, I am trying to filter my results to those cases where Q_6A_comments OR Q_12A_comments OR Q_10A_comments OR Q_9A_2016_comments are not blank. What I get are cases where all four are not blank. What am I doing wrong?
If(
MayPublishComments.Value = true And NotReviewed.Value = true,
Sort(
Filter(
'AtNeed Complete v2S',
Or(
!IsBlank(Q_6A_Comments),
!IsBlank(Q_12A_Comments),
!IsBlank(Q_10A_Comments),
!IsBlank(Q_9A_2016_Comments)
) And Q_12C_Flag = 1 And IsBlank('Marketing Used ')
),
DateFormReceived,
Descending
),
If(
MayPublishComments.Value = true And NotReviewed.Value = false,
Sort(
Filter(
'AtNeed Complete v2S',
Q_12C_Flag = 1 And Or(
!IsBlank(Q_6A_Comments),
!IsBlank(Q_12A_Comments),
!IsBlank(Q_10A_Comments),
!IsBlank(Q_9A_2016_Comments)
)
),
DateFormReceived,
Descending
),
If(
MayPublishComments.Value = false And NotReviewed.Value = true,
Sort(
Filter(
'AtNeed Complete v2S',
IsBlank('Marketing Used ') And Or(
!IsBlank(Q_6A_Comments),
!IsBlank(Q_12A_Comments),
!IsBlank(Q_10A_Comments),
!IsBlank(Q_9A_2016_Comments)
)
),
DateFormReceived,
Descending
),
Sort(
Filter(
'AtNeed Complete v2S',
Or(
!IsBlank(Q_6A_Comments),
!IsBlank(Q_12A_Comments),
!IsBlank(Q_10A_Comments),
!IsBlank(Q_9A_2016_Comments)
)
),
DateFormReceived,
Descending
)
)
)
)