Forum Discussion
gwoodley
1 year agoFrequent Visitor
Check if Dates are same, but only when another column value exists in another column.
Hi, I'm a little stuck here, I'm trying to compare a date column to see if the dates are the same, but only if a value in a one column first exists in another column. All columns are on the same ...
- 1 year ago
Try this calculated column:
Match = VAR vParentOrder = 'Table'[Parent Order#] VAR vDate = 'Table'[Date] VAR vTable = FILTER ( 'Table', 'Table'[Order#] = vParentOrder && 'Table'[Date] = vDate ) VAR vResult = IF ( ISEMPTY ( vTable ), "No", "Yes" ) RETURN vResult
DataInsights
Super User
1 year ago
Try this calculated column:
Match =
VAR vParentOrder = 'Table'[Parent Order#]
VAR vDate = 'Table'[Date]
VAR vTable =
FILTER (
'Table',
'Table'[Order#] = vParentOrder
&& 'Table'[Date] = vDate
)
VAR vResult =
IF ( ISEMPTY ( vTable ), "No", "Yes" )
RETURN
vResult
gwoodley
1 year agoFrequent Visitor
Thank you 👍