Forum Discussion
Faye1901
7 years agoHelper I
Date Diff with > 1 condition
Hi All I've got a relatively simple DAX issue which is elluding me! I'm trying to count the number of days in a given "Stage" of a workflow, I can count the days between stages which are compl...
- Anonymous7 years ago
Hey Faye1901
You can use a variable.Time in stage ALL =
VAR _StageCompletionDate = IF(StageCompletionDate = BLANK(), TODAY(), StageCompletionDate)
RETURN
DATEDIFF('All Workflow Data'[StageEntryDate], _StageCompletionDate, DAY)Thanks!
A - 7 years ago
That works perfectly thank you.
Anonymous
7 years agoNot applicable
Hey Faye1901
You can use a variable.
Time in stage ALL =
VAR _StageCompletionDate = IF(StageCompletionDate = BLANK(), TODAY(), StageCompletionDate)
RETURN
DATEDIFF('All Workflow Data'[StageEntryDate], _StageCompletionDate, DAY)
Thanks!
A
Faye1901
7 years agoHelper I
That works perfectly thank you.