Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Aimeeclaird
Helper IV
Helper IV

Measure to Count blanks of a date in the model is at least + 1 week/7 days

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 DateSales 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?!

1 REPLY 1
dedelman_clng
Community Champion
Community Champion

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

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.