Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filter report on date between other column dates

Hi, community,

 

I have a table, such as:

Project IdCycle IdCycle StartCycle Finish
111/02/20215/03/2021
211/02/20215/03/2021
328/03/202111/03/2021
428/03/202111/03/2021
528/03/202111/03/2021

In the report, I want to filter out all projects which are not in the current cycle.

 

Thanks

Evan

3 Replies

  • Anonymous , Can you explain with examples. The expected output is not clear to me .

     

    Try a measure like this with independent date table

    measure =
    var _max1 = maxx(allselected('Date'), Date[Date])
    var _min1 = minx(allselected('Date'), Date[Date])
    return
    calculate(count([Project Id]), filter('Table', 'Table'[Cycle Finish] <=_max1 && 'Table'[Cycle Finish] >=_min1 ))