Forum Discussion
Anonymous
3 years agoNot applicable
Return The First Date the Staff Failed
Hi there, I want to get the column which returns the first date that staff failed. The table may go like this: Staff | Date | Passed? | Flag | First Date Failed ...
Ashish_Mathur
Super User
3 years agoHi,
Create a calculated column formula to extract the Year
Year = year(Data[Date])
First date failed in year = if(Data[Passed?]="Failed",calculate(min(Data[Date]),filter(Data,Data[Staff]=earlier(Data[Staff])&&Data[Passed?]="Failed")),blank())
Hope this helps.
Anonymous
3 years agoNot applicable
Hi, I tried on my report and it only returns the very first date, which is 1/9/2021 for all rows
- Ashish_Mathur3 years ago
Super User
Hi,
Try this
Year = year(Data[Date])
First date failed in year = if(Data[Passed?]="Failed",calculate(min(Data[Date]),filter(Data,Data[Staff]=earlier(Data[Staff])&&Data[Passed?]="Failed"&&Data[Year]=earlier(Data[Year]))),blank())