Forum Discussion

byggarebob's avatar
byggarebob
Frequent Visitor
3 years ago
Solved

Variable filter range based on slicer single selection

Hi,   I'm building a report which will be used on an Ipad and I want to minimize the number of slicer selections needed for the user to make it more user friendly. I have a year slicer with single ...
  • amitchandak's avatar
    3 years ago

    byggarebob , Based on what I got

     

    In such a case slicer, need to be on an independent year/date table and then you can have measure like

     

    //Date1 is independent Date table, Date is joined with Table
    new measure =
    var _max = maxx(allselected(Date1),Date1[Year])
    var _min = _max -1
    return
    calculate( sum(Table[Value]), filter('Date', 'Date'[Year] >=_min && 'Date'[Year] <=_max))

     

    Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI