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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
BEB2023
New Member

Consecutive days of missed appointments

Hi There, 

I am trying to get a measure that counts the last consecutively missed appointments in a dataset that looks like in the screenshot below. Essentially, the measure should count all missed appointments (MissedAppt = Yes) since the last appointment that was not missed (MissedAppt = No). I appreciate any help you can provide with this.

BEB2023_0-1695655554828.png

Regards

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

ThxAlot_0-1695668356729.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

2 REPLIES 2
ThxAlot
Super User
Super User

ThxAlot_0-1695668356729.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



sjoerdvn
Super User
Super User

something like this I Guess

consecutively missed appointments for ID=
VAR lnmap = CALCULATE(MAX(Table[Date]),Table[MissedAppt]="No")
VAR smap = IF(ISBLANK(lnmap),DATE(1900,1,1),lnmap)
RETURN IF(HASONEVALUE(Table[ID],CALCULATE(COUNTROWS(Table), Table[Date]>smap, Table[MissedAppt]="Yes"))

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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