Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Count Tasks Next 30 Days

Hello,   I'm trying to count the tasks which are due in the next 30 days (from today). Is the below the correct measure?   Tasks Approaching = CALCULATE([OpenTasks] , (Date[c.DueMonth] >= TODAY(...
  • Ahmedx's avatar
    3 years ago

    pls try this

    Tasks Approaching = 
    VAR _StartDate =TODAY()
    VAR _EndDate = _StartDate +30
    RETURN
    
    CALCULATE([OpenTasks] , DATESBETWEEN(Date[c.DueMonth], _StartDate,_EndDate ))