Forum Discussion
Anonymous
3 years agoNot applicable
Time between two dates based on criteria
Hello! I have a table of ticket data where I for each critical ticket need to calculate the time since the last critical ticket was registered. Been trying to solve this for a few hours now withou...
FreemanZ
3 years agoSuper User
Good Luck!
Anonymous
3 years agoNot applicable
Not really getting this to work 😞 Tried to change to the following:
Time Since Last Critical =
VAR CurrentDate = Issues[DATE_CREATED]
VAR TABLE1 =
CALCULATETABLE(
'Issues',
FILTER ('Issues', 'Issues'[ISSUE_PRIORITY]="Critical"),
FILTER ('Issues', 'Issues'[DATE_CREATED]<CurrentDate)
)
VAR MinDate =
MAXX(
Issues,
Issues[DATE_CREATED]-CurrentDate)
RETURN
IF (
Issues[ISSUE_PRIORITY]="Critical",
INT( MinDate),blank()
)I don't really understand the MinDate logic though (tried both MINX and MAXX)
- FreemanZ3 years agoSuper User
The first argument of MINX shall be the filtered table - Table1, instead of the native table - Issues.
MINX is to scan Table1 and get the immediate last date tagged "Critical."