# Two blank date fields coming up in report when have filtered for dates not equal

• 0
• Question
• Updated 2 years ago
• Answered
I have a report comparing two date fields. If they are not equal they should be present on the report. This is fine when both date fields are entered and different however when both date fields are blank they are also coming up on my report. Is there a way to stop this from happening?
• 120 Points

Posted 2 years ago

• 0
• 72,448 Points
No problem,

Just add a filter to your report which is "indented"

and
all
[Date 1] is not equal to (blank)
[Date 2] is not equal to (blank)

Just leave the date blank
• 120 Points
Thanks for this however I'm afraid this is not quite what I'm after.

The above formula will get rid the entry if either of the dates are blank. I however am interested in these entries and only want  the entries with TWO blank dates to leave the report.

E.g if I have a date 1 and date 2 and they are the same - not on report.
if i have date 1 missing and date 2 missing - not on report
if I have date 1 and date 2 missing - on report
if I have date 2 missing and date 1 - on report
if i have date 1 and date 2 but they are different - on report.

Hopefully this makes more sense?

Thanks again.
• 72,448 Points
OK, I see that my answer was not correct

Try this

Where
all
[date 1] not equal [date 2]
and
( indented)
any
[date 1] not equal blank
[date 2] not equal blank
• 120 Points
Thank you very much all sorted now!! :-)
• 120 Points
Now that it is working with these date fields e.g. Visit 1 imported from x and Visit 1 imported from Y is there a way to add to the same report a comparison for Visit 2 imported from both X and Y?

Currently I have each visit set up

any
Visit 1 from X not equal to Visit 1 from Y
Visit 2 from X not equal to Visit 2 from Y
Visit 3 from X not equal to Visit 3 from Y

but I cant seem to add the "any" functions you described above?
Maybe my indentations are quite right?
• 72,448 Points
Can you post a screen shot of your current filters?

Do you understand what I mean by indenting?  Did you hover over the right side to locate the indent icon?
• 120 Points
So this is the report which is working well.
• 120 Points
However I was wondering if there is a way of adding this ANY indent to the following report which has a series of ANY's already in it without showing the double blanks

Cheers
• 72,448 Points
If you hover beside your first line you can add a line and then indent it.