Forum Discussion

taylorb's avatar
taylorb
Helper I
6 years ago
Solved

Using TODAY() In Historical Visuals

This is probably a very simple solution. I have a card for daily count that uses Today() but I also want to see the historical trend. I obviously cannot use Today() since it will only show today. What could I use instead to show the count on each calendar date? Currently, there is not a relationship between the Calendar table and the data table, because I only have the start and end dates so I dont want my filter to only include records that started or ended on that date. 

 

My Current measure:

CALCULATE(
    DISTINCTCOUNT(Assignments[ASSIGNMENT_ID]), 
    Filter(Assignments, 
    ([ASSIGNMENT_CURRENT_STATUS_NAME] = "Cleared to Start"  || ([ASSIGNMENT_CURRENT_STATUS_NAME] = "Cancelled" && Assignments[WAS_NEVER_STARTED] = false)) &&
    TODAY() >= 'Assignments'[START_DATE] && 
    TODAY() <= 'Assignments'[END_DATE] &&
    Assignments[JOB_POSITION_TYPE_NAME] = "Travel"
    ))

 

3 Replies