Forum Discussion
BradonK
9 months agoFrequent Visitor
How to Find Rows Missing from Table by Date
Hi, I am trying to create a report that takes two tables. One is a list of breathalyser readings by date. The other is a list of signatures on a form by date. Below is an example. Breathalyser D...
Kedar_Pande
9 months agoSuper User
Create a measure that compares the two tables for your selected date:
Missing Names =
VAR SelectedDate = MAX('DateTable'[Date])
RETURN
CONCATENATEX(
FILTER(
VALUES('Breathalyser Data'[Name]),
NOT(CALCULATE(
COUNTROWS('Form Signatures'),
'Form Signatures'[Date] = SelectedDate,
'Form Signatures'[Signatures] = EARLIER('Breathalyser Data'[Name])
))
),
[Name],
", "
)
VAR SelectedDate = MAX('DateTable'[Date])
RETURN
CONCATENATEX(
FILTER(
VALUES('Breathalyser Data'[Name]),
NOT(CALCULATE(
COUNTROWS('Form Signatures'),
'Form Signatures'[Date] = SelectedDate,
'Form Signatures'[Signatures] = EARLIER('Breathalyser Data'[Name])
))
),
[Name],
", "
)
Use this in a card visual, or modify to show in a table by removing CONCATENATEX.