Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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.
Regards
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
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"))
User | Count |
---|---|
13 | |
10 | |
8 | |
7 | |
5 |
User | Count |
---|---|
24 | |
16 | |
15 | |
10 | |
7 |