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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dantheram
Helper II
Helper II

Consecutive days since target missed

hi all

 

as the title says - how do i count the consecutive days since a target value was last exceeded?

 

i have a count of days under the target and days over but nothing which gives me the number of days since we last failed to meet target.

 

Guessing i need an equation which gives me the most recent date we beat target and another which looks back from today and counts the days between 

 

thanks 

Dan

3 REPLIES 3
reidnmorrison
Resolver II
Resolver II

Can you share a screen shot of the data table (removing any sensitive information) 

reidnmorrison
Resolver II
Resolver II

Days since = 
    DATEDIFF(MAX('Dates'[Date]), Today(), DAY)

A measure like this woukld work if you have the date target was last met (can replace 'Dates'[Date] with that data.

i dont know how to compute the last met date, something like - max - date where delay value < target value?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.