Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I want to write a measure that counts the number of blanks in a column when the date in another column is at least 5 days passed.
Example, the data is a from a CRM, I am reporting on data quality. I want to give the users 1 week to populate the other column before I flag it as missing data.
Handover Date | Sales Value |
01/08/2020 | |
23/09/2020 | |
20/08/2020 | £1000 |
07/07/2020 | £1000 |
Based on the example of my data, I would only count 1 blank.
Any suggestions please, experts?!
Hi @Aimeeclaird try something along the lines of
MissingDataCount =
VAR __CountDt =
TODAY () - 5
RETURN
COUNTROWS (
FILTER (
Table,
Table[Handover Date] < __CountDt
&& Table[Sales Value] = BLANK ()
)
)
Hope this helps
David
User | Count |
---|---|
16 | |
14 | |
13 | |
12 | |
11 |
User | Count |
---|---|
19 | |
16 | |
15 | |
11 | |
9 |