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...
danextian
9 months agoSuper User
Hi BradonK
If the goal is to count records that exist in Signatures but not in Breathalyser, a measure using the EXCEPT function can return that difference directly.
Not in Breathalyser =
VAR _sig =
SUMMARIZE ( FormSignatures, FormSignatures[Date], FormSignatures[Signatures] )
VAR _breath =
SUMMARIZE ( Breathalyser, Breathalyser[Date], Breathalyser[Name] )
RETURN
COUNTROWS ( EXCEPT ( _sig, _breath ) )
However, if your goal is to check which name and date combination has a record in either table, you will need a dimension table for the names and another one for the dates and relate them to the fact tables.
Please see the attached pbix.